A

Admin • 828.03K Points
Coach

Q. What will be printed?

Code:
int x = 0;
while(x < 3)
{
x++;
}
Console.WriteLine(x);
  • (A) 2
  • (B) 3
  • (C) 4
  • (D) 0

Explanation by: Admin
Loop increments x until condition fails.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.