Quiz · Conditions and loops · lesson 2 of 13
Quiz — else if order
What does the program print?
int x = 7;
if (x > 3)
{
Console.Write("A");
}
else if (x > 5)
{
Console.Write("B");
}
Console.Write("C");What does the program print?
int x = 7;
if (x > 3)
{
Console.Write("A");
}
else if (x > 5)
{
Console.Write("B");
}
Console.Write("C");