int i = 0; while (i < 10) { System.out.println(i); }
int x = 0; for (int i = 10; i >= 0; ++i) { x = x + i; }