-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswitch.cs
34 lines (31 loc) · 901 Bytes
/
switch.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System
namespace SwitchApp {
class Switch {
static void Main(String[] args) {
int day_number;
switch (day_number) {
case 1:
Console.WriteLine("Saturday");
break;
case 2:
Console.WriteLine("Sunday");
break;
case 3:
Console.WriteLine("Monday");
break;
case 4:
Console.WriteLine("Tuesday");
break;
case 5:
Console.WriteLine("Wednesday");
break;
case 6:
Console.WriteLine("Thursday");
break;
case 7:
Console.WriteLine("Friday");
break;
}
}
}
}