Home / MCQ Bank / Computer
Computer Control Flow Statements In C Sharp Difficulty: Medium

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 % 2 == 0) goto even: else { Console.WriteLine("number is odd:"); Console.ReadLine(); } even: Console.WriteLine("number is even:"); Console.ReadLine(); } for i = 4.

Select the correct option to test your answer:

More Computer Questions

Compiler can check___________? What does the at_beginning_of_day method do for a DateTime object in Ruby? What is the code to be used to trim whitespaces ? In Hadoop architecture, what does the term "shuffle and sort" refer to? Which of the following data structure is used to implement BFS?