Phương Quyên
New member
What will be the output of the following C# code?
A. Hi...
B.
...
C. Hi...infinite times
D. Hello infinite times
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();
}
B.
Code:
Hello.
C. Hi...infinite times
D. Hello infinite times