Skip to content
Quiz · Conditions and loops · lesson 2 of 13

Quiz — else if order

What does the program print?

C#
int x = 7;

if (x > 3)
{
    Console.Write("A");
}
else if (x > 5)
{
    Console.Write("B");
}

Console.Write("C");