forked from BlackTimber-Labs/DemoPullRequest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
40 lines (37 loc) · 798 Bytes
/
main.cpp
File metadata and controls
40 lines (37 loc) · 798 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
38
39
40
//
// main.cpp
// days numbers
//
// Created by Mohd Adnan on 07/09/21.
//
#include <iostream>
using namespace std;
int main(int argc, const char * argv[]) {
int x;
cout << "Type a number: "; // Type a number and press enter
cin >> x; // Get user input from the keyboard
switch (x) {
case 1:
cout << "Monday";
break;
case 2:
cout <<"Tuesday";
break;
case 3:
cout <<"Wednesday";
break;
case 4:
cout <<"Thrusday";
break;
case 5:
cout <<"Friday";
break;
case 6:
cout <<"Saturday";
break;
case 7:
cout <<"Sunday";
break;
}
return 0;
}