CJCoding With Joseph
15free / daySign inCreate account
Back to Multiple Choice Quiz

Select topics to narrow your question pool, then enable Random to jump to a random question matching your filters.

Topics

Output of a while Loop

C# quiz · Question 3
mediumLoops

What does this code print?

Code

1int i = 5;
2while (i > 2) {
3 Console.Write(i);
4 i--;
5}