Vidyalelo
C# Programming · Q32

Control Flow Statements in C Sharp

Programming · C# Programming · question 32

Q32

What will be the output of the following C# code? static void Main(string[] args) int x; for (x = 1; x <= 3; x++) int j = 1; do j++; while (x % j == 2); Console.WriteLine(x + " " + j); Console.ReadLine();

A.
1 12 1 3 1
B.
1 12 13 1
C.
12 22 32
Answer
D.
11 21 31

Answer: Option C

Solution

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