-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathswitch.cpp
More file actions
39 lines (34 loc) · 711 Bytes
/
Copy pathswitch.cpp
File metadata and controls
39 lines (34 loc) · 711 Bytes
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
34
35
36
37
#include <iostream>
using namespace std;
int main () {
//switch case
int day;
cout << "Enter a number to check day : " ;
cin >> day ;
switch(day) {
case 1:
cout << "Monday" << endl ;
break ;
case 2:
cout << "Tuesday" << endl ;
break ;
case 3:
cout << "Wednesday" << endl ;
break ;
case 4:
cout << "Thursday" << endl ;
break ;
case 5:
cout << "Friday" << endl ;
break ;
case 6:
cout << "Saturday" << endl ;
break ;
case 7:
cout << "Sunday" << endl ;
break ;
default:
cout << "Invailed number" ;
break ;
}
}