123456
for(c1=10;c1>=(-10);c1-=2)//extending loop to -10 { int j=abs(c1); //just taking the absolute value. cout<<setw(4)<<j; //if you use c1 here instead of j you will get an infinite loop }