LogiQuest
Back to Control Instructions
5

What is the output of the following program?

int i = 0;
while (true) { if (++i == 3) break; }
Console.WriteLine(i);
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.