adplus-dvertising
frame-decoration

Question

Select the output for the following set of 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: (d).10

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 :