Examveda

What will be the output of the following C# code?
static void Main(string[] args)
{
    int i, j;
    for (i = 1, j = i; i <= 3 && j >= 0; i++, j--)
    {
        if (i == j)
            continue;
        else
            Console.WriteLine(j);
    }
    Console.ReadLine();
}

A. i = 0, j = 1;

B. i = 1, j = 0;

C. j = 0;

D. None of the mentioned

Answer: Option C


Join The Discussion

Related Questions on Control Flow Statements in C Sharp