-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmonth.cpp
More file actions
61 lines (47 loc) · 1 KB
/
month.cpp
File metadata and controls
61 lines (47 loc) · 1 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#include<iostream>
int main(){
int month;
std:: cout << "Enter a number between (1-12) : ";
std:: cin >> month;
switch(month) {
case 1 :
std:: cout << "It is January.\n";
break;
case 2 :
std:: cout << "It is February.\n";
break;
case 3 :
std:: cout << "It is March.\n";
break;
case 4 :
std:: cout << "It is April.\n";
break;
case 5 :
std:: cout << "It is May.\n";
break;
case 6 :
std:: cout << "It is June.\n";
break;
case 7 :
std:: cout << "It is July.\n";
break;
case 8 :
std:: cout << "It is August.\n";
break;
case 9 :
std:: cout << "It is September.\n";
break;
case 10 :
std:: cout << "It is October.\n";
break;
case 11 :
std:: cout << "It is November.\n";
break;
case 12 :
std:: cout << "It is December.\n";
break;
default :
std:: cout << "Please Enter Numbers.\n";
}
return 0;
}