A

Admin • 833.24K Points
Coach

Q. What will be printed?

Code:
for(int i = 0; i < 2; i++)
{
Console.WriteLine(i);
}
  • (A) 0
  • (B) 0 1
  • (C) 1 2
  • (D) Compilation error

Explanation by: Admin

Loop runs for i = 0 and i = 1.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.