Nguyễn Thu Trang
New member
What will be the output of the following C# code?
A. 13
B. 15
C. 11
D. 10
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();
}
B. 15
C. 11
D. 10