LogiQuest
Back to Control Instructions
2

What is the output of the following program?

int day = 2;
switch (day)
{
    case 1: Console.Write("Mon"); break;
    case 2: Console.Write("Tue"); break;
    default: Console.Write("?"); break;
}
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.