-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path0033.cpp
More file actions
62 lines (54 loc) · 1.33 KB
/
0033.cpp
File metadata and controls
62 lines (54 loc) · 1.33 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
62
#include <iostream>
#include <stdlib.h>
/*====================================
* eXcript.com
* fb.com/eXcript
* ====================================*/
using namespace std;
int main() {
cout << "Digite um numero correspondente a um mes do ano: " << endl;
int num = 0;
cin >> num;
switch(num){
case 1:
cout << "Janeiro" << endl;
break;
case 2:
cout << "Fevereiro" << endl;
break;
case 3:
cout << "Marco" << endl;
break;
case 4:
cout << "Abril" << endl;
break;
case 5:
cout << "Maio" << endl;
break;
case 6:
cout << "Junho" << endl;
break;
case 7:
cout << "Julho" << endl;
break;
case 8:
cout << "Agosto" << endl;
break;
case 9:
cout << "Setembro" << endl;
break;
case 10:
cout << "Outubro" << endl;
break;
case 11:
cout << "Novembro" << endl;
break;
case 12:
cout << "Dezembro" << endl;
break;
default:
cout << "O valor digitado nao corresponde a um mes do ano!" << endl;
}
system("pause");
return 0;
}