Vidyalelo
C# Programming · Q30

Control Flow Statements in C Sharp

Programming · C# Programming · question 30

Q30

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

A.
1 2 3 4 5
B.
10
C.
5 6 7 8 9 10
D.
1 2 3 4 5 6 7 8 9 10
Answer

Answer: Option D

Solution

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