-
Notifications
You must be signed in to change notification settings - Fork 0
/
monthly-message.cpp
71 lines (54 loc) · 2.02 KB
/
monthly-message.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// Hirchuk Vladyslav
// Monthly message Solution
#include <bits/stdc++.h>
#define ll long long
#define DIM 100009
#define pll pair<ll,ll>
using namespace std;
int m;
int main() {
cout << "Enter a month number (1 = January, 2 = February, etc.): ";
cin >> m;
switch (m) {
case 1:
cout << "Welcome to January! Stay warm and enjoy the winter wonderland." << endl;
break;
case 2:
cout << "Hello February! Get ready to celebrate love on Valentine's Day." << endl;
break;
case 3:
cout << "March is here! Spring is blooming, and St. Patrick's Day is around the corner." << endl;
break;
case 4:
cout << "April showers bring May flowers. Welcome to April!" << endl;
break;
case 5:
cout << "May is here! Enjoy the beauty of springtime and outdoor activities." << endl;
break;
case 6:
cout << "Welcome to June! Summer has arrived; it's time for beach trips and ice cream." << endl;
break;
case 7:
cout << "July is here! Celebrate independence with fireworks and barbecues." << endl;
break;
case 8:
cout << "August is upon us. Make the most of the warm summer days." << endl;
break;
case 9:
cout << "September has arrived. Fall is approaching; enjoy the changing leaves." << endl;
break;
case 10:
cout << "Hello October! Get ready for Halloween festivities and pumpkin spice everything." << endl;
break;
case 11:
cout << "November is here. Give thanks and prepare for the holiday season." << endl;
break;
case 12:
cout << "December is here! Embrace the magic of the holiday season and spread joy." << endl;
break;
default:
cout << "Error: Invalid month number. Please enter a number between 1 and 12." << endl;
break;
}
return 0;
}