-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexp5C.cpp
45 lines (42 loc) · 1.03 KB
/
exp5C.cpp
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
38
39
40
41
42
43
44
45
#include<iostream>
using namespace std;
int main()
{
int choice;
cout << "1. Monday" << endl
<< "2. Tuesday" << endl
<< "3. Wednesday" << endl
<< "4. Thursday" << endl
<< "5. Friday" << endl
<< "6. Saturday" << endl
<< "7. Sunday" << endl;
cout << "Enter your choice: ";
cin >> choice;
switch(choice) {
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 << "Wrong Input" << endl;
break;
}
return 0;
}