Question:What will the following code output?
int x = 5;
if (x < 10)
    Console.WriteLine("Less than 10");
else if (x < 20)
    Console.WriteLine("Less than 20");
else
    Console.WriteLine("20 or more");
 

A Less than 10 

B Less than 20 

C 20 or more 

D No output 

+ Answer
+ Explanation
+ Report
Total Preview: 26

Copyright © 2024. Powered by Intellect Software Ltd