123456789
int i=0, a=0; // i==0 and a==0, are they not? while(i<10) { // i==0 => 0<10, which is true? a=a+i*i; // a=0+0*0 i=i+2; // i=0+2 => i==2 cout<<a<<endl; // this will appear } while(i<10) { // i==2 => 2<10, still true? ...