Question:What will the following code output?for (int i = 0; i < 3; i++) { if (i == 1) continue; Console.WriteLine(i); }
for (int i = 0; i < 3; i++) { if (i == 1) continue; Console.WriteLine(i); }
A 0 1 2 B 0 2 C 1 2 D 0 1
+ AnswerB
+ ExplanationWhen i is 1, the continue statement skips the output for that iteration.
+ Report