What will be the output of the following C# code? [code] static void Main(string[] args) { int x = 10; do { Console.WriteLin

What will be the output of the following C# code?
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
 

Tìm kiếm

Back
Top