-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2_4.cpp
More file actions
37 lines (34 loc) · 682 Bytes
/
Copy path2_4.cpp
File metadata and controls
37 lines (34 loc) · 682 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
//
// Created by Yurii Popov on 15.09.2025.
//
#include <stdio.h>
int main() {
int month;
printf("Enter the month number (1-12): ");
scanf("%d", &month);
switch (month) {
case 3:
case 4:
case 5:
printf("Spring\n");
break;
case 6:
case 7:
case 8:
printf("Summer\n");
break;
case 9:
case 10:
case 11:
printf("Autumn\n");
break;
case 12:
case 1:
case 2:
printf("Winter\n");
break;
default:
printf("Error: Invalid month number.\n");
}
return 0;
}