A

Admin • 828.03K Points
Coach

Q. What is the output?
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 1; j++) {
System.out.print(i + j);
}
}

  • (A) 011223
  • (B) 0123
  • (C) 112233
  • (D) 012123

Explanation by: Admin
Outputs the sum of i and j for each nested iteration.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.