adplus-dvertising
frame-decoration

Question

Select the output for following set of 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.

Hello….

c.

Hi…infinite times

d.

Hello infinite times

Posted under C# programming

Answer: (b).Hello….

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Select the output for following set of Code :