Vidyalelo
C# Programming · Q62

Control Flow Statements in C Sharp

Programming · C# Programming · question 62

Q62

What will be the output of the following C# code? static void Main(string[] args) int i = 0; while (i <= 50) if (i % 10 == 0) continue; else break; i += 10; Console.WriteLine(i % 10);

A.
code prints output as 0 0 0 0 0
B.
code prints output as 10 20 30 40 50
C.
infinite loop but doesn't print anything
Answer
D.
Code generate error

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board