Examveda

What will be the output of the following C# code?
static void Main(string[] args)
{
    int x = 10;
    do
    {
        Console.WriteLine( x++);
    }
    while(Convert.ToBoolean(5) && Convert.ToBoolean(4) && Convert.ToBoolean(3) 
    && Convert.ToBoolean(2) && Convert.ToBoolean(1) && Convert.ToBoolean(0));    
    Console.ReadLine();
}

A. 13

B. 15

C. 11

D. 10

Answer: Option D


Join The Discussion

Related Questions on Control Flow Statements in C Sharp