Why does this
int x = 2; for (int y =2; y>0;y--){ System.out.println(x + \" \"+ y + \" \"); x++; }
prints the s
in a loop, first initialization, then condition checking, then execution, after that increment/decrement. so pre/post increment/decrement does not affect the program code.