CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Grouped Switch Cases

C# code walkthrough · Question 31
easyIf Statements

Code

Read carefully. What does this print?
1int day = 3;
2switch (day)
3{
4 case 1:
5 case 2:
6 case 3:
7 Console.WriteLine("early");
8 break;
9 default:
10 Console.WriteLine("late");
11 break;
12}

Your answer