Question:What will the following code output?int x = 10; if (x > 5) Console.WriteLine("Greater"); else Console.WriteLine("Smaller");
int x = 10; if (x > 5) Console.WriteLine("Greater"); else Console.WriteLine("Smaller");
A Greater B Smaller C 10 D Error
+ AnswerA
+ ExplanationThe condition x >5 is true, so "Greater" is printed.
+ Report