Vidyalelo
C# Programming · Q37

Control Flow Statements in C Sharp

Programming · C# Programming · question 37

Q37

What will be the output of the following C# code? static void Main(string[] args) int i; for (i =-3; i 0) Console.WriteLine("A"); else if (i < 0) Console.WriteLine("B"); Console.ReadLine();

A.
B B zero A A A
B.
B zero A A A
C.
B B B zero A A A
Answer
D.
A A A zero B B B

Answer: Option C

Solution

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