A

Admin • 828.03K Points
Coach

Q. What is printed by this loop?
int i = 0;
while (i < 3) {
System.out.print(i);
i++;
}

  • (A) 012
  • (B) 123
  • (C) 234
  • (D) 321

Explanation by: Admin
Loop runs while i is less than 3 and prints 0, 1, 2.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.