#include <iostream>
02 | #include <string> |
03 |
04 | using namespace std; |
05 | int main() |
06 | { |
07 | string raptor_prompt_variable_zzyz; |
08 | int a; |
09 |
10 | raptor_prompt_variable_zzyz = "masukkan angka 1 sampai dengan 12 :" ; |
11 | cout << raptor_prompt_variable_zzyz << endl; |
12 | cin >> a; |
13 | if (a== 1 ) |
14 | { |
15 | cout << "BULAN JANUARY" << endl; } |
16 | else |
17 | { |
18 | if (a== 2 ) |
19 | { |
20 | cout << "BULAN FEBRUARY" << endl; } |
21 | else |
22 | { |
23 | if (a== 3 ) |
24 | { |
25 | cout << "BULAN MARCH" << endl; } |
26 | else |
27 | { |
28 | if (a== 4 ) |
29 | { |
30 | cout << "BULAN APRIL" << endl; } |
31 | else |
32 | { |
33 | if (a== 5 ) |
34 | { |
35 | cout << "BULAN MAY" << endl; } |
36 | else |
37 | { |
38 | if (a== 6 ) |
39 | { |
40 | cout << "BULAN JUNE" << endl; } |
41 | else |
42 | { |
43 | if (a== 7 ) |
44 | { |
45 | cout << "BULAN JULY" << endl; } |
46 | else |
47 | { |
48 | if (a== 8 ) |
49 | { |
50 | cout << "BULAN AUGUST" << endl; } |
51 | else |
52 | { |
53 | if (a== 9 ) |
54 | { |
55 | cout << "BULAN SEPTEMBER" << endl; } |
56 | else |
57 | { |
58 | if (a== 10 ) |
59 | { |
60 | cout << "BULAN OCTOBER" << endl; } |
61 | else |
62 | { |
63 | if (a== 11 ) |
64 | { |
65 | cout << "BULAN NOVEMBER" << endl; } |
66 | else |
67 | { |
68 | if (a== 12 ) |
69 | { |
70 | cout << "BULAN DECEMBER" << endl; } |
71 | else |
72 | { |
73 | cout << "INPUTAN SALAH" << endl; | | | } |
74 | } |
75 | } |
76 | } |
77 | } |
78 | } |
79 | } |
80 | } |
81 | } |
82 | } |
83 | } |
84 | } |
85 |
86 | system ( "PAUSE" ); |
87 | return EXIT_SUCCESS; |
88 | } |
Tidak ada komentar:
Posting Komentar