CJCoding With Joseph
← Back to Question List
C# Code Walkthrough #31

Grouped Switch Cases

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