Question:What will the following code print?int i = 0; do { Console.WriteLine(i); i++; } while (i < 3);
int i = 0; do { Console.WriteLine(i); i++; } while (i < 3);
A 0 1 2 B 1 2 3 C 0 1 2 3 D 0 1
+ AnswerA
+ ExplanationThe do-while loop executes the body at least once before checking the condition.
+ Report