Vidyalelo
C# Programming · Q59

Control Flow Statements in C Sharp

Programming · C# Programming · question 59

Q59

What will be the output of the following C# code? static void Main(string[] args) int i; Console.WriteLine("enter value of i:"); i = Convert.ToInt32(Console.ReadLine()); if (i < 7) i++; continue; Console.WriteLine("final value of i:" +i); Console.ReadLine();

A.
12
B.
11
C.
Compile time error
Answer
D.
13

Answer: Option C

Solution

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