adplus-dvertising
frame-decoration

Question

Select the output for the following set of code :
static void Main(string[] args)
    {
        int a = 0;
        int i = 0;
        int b;
        for (i = 0; i < 5; i++)
        {
             a++;
             Console.WriteLine("Hello \n");
             continue;
        }
        Console.ReadLine();
    }

a.

print hello 4 times

b.

print hello 3 times

c.

print hello 5 times

d.

print hello infinite times

Posted under C# programming

Answer: (c).print hello 5 times

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 the following set of code :