while (true) { System.out.println("In the loop"); }
i = 0; while (i < 4) { System.out.printf("i = %d\n",i); i = i + 1; }
i
is the Loop Control Variable (LCV)
while (boolean-expression) statement;
while (boolean-expression) { statement; }
double x = 900; while (x != .01) x = x /10;
double x = 900; while (x != .01) System.out.printf("x = %f\n",x); x = x /10;
double x = 900; while (x != .01) x = x /10; System.out.printf("x = %f\n",x);
double x = 900; while (x != .01) { x = x /10; System.out.printf("x = %f\n",x); }