-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path7A02.c
51 lines (49 loc) · 844 Bytes
/
7A02.c
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
#include<stdio.h>
void main()
{
int a;
printf("Enter value of a = ");
scanf("%d",&a);
switch (a)
{
case 1:
printf("31");
break;
case 2:
printf("28");
break;
case 3:
printf("31");
break;
case 4:
printf("30");
break;
case 5:
printf("31");
break;
case 6:
printf("30");
break;
case 7:
printf("31");
break;
case 8:
printf("31");
break;
case 9:
printf("30");
break;
case 10:
printf("31");
break;
case 11:
printf("30");
break;
case 12:
printf("31");
break;
default:
printf("Wrong month number");
break;
}
}