Examveda

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

Answer: Option C


Join The Discussion

Related Questions on Control Flow Statements in C Sharp