What will be the output of the following C# code? [code] static void Main(string[] args) { int i = 1; while (i <= 1)

Phương Quyên

New member
What will be the output of the following C# code?
Code:
   static void Main(string[] args)
   {
       int i = 1;
       while (i <= 1)
       {
           if ('A' < 'a')
           {
               Console.WriteLine("Hello...");
           }
           else
           {
              Console.WriteLine("Hi...");
           }
              i++;
       }
       Console.ReadLine();
   }
A. Hi...
B.
Code:
Hello.
...
C. Hi...infinite times
D. Hello infinite times
 

Tìm kiếm

Back
Top