-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy path16.c
More file actions
39 lines (35 loc) · 689 Bytes
/
Copy path16.c
File metadata and controls
39 lines (35 loc) · 689 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
38
39
#include <stdio.h>
int main()
{
int weekday;
printf("Enter the numeric week day value (1-7): ");
scanf("%d", &weekday);
switch (weekday)
{
case 1:
printf("Monday\n");
break;
case 2:
printf("Tuesday\n");
break;
case 3:
printf("Wednesday\n");
break;
case 4:
printf("Thursday\n");
break;
case 5:
printf("Friday\n");
break;
case 6:
printf("Saturday\n");
break;
case 7:
printf("Sunday\n");
break;
default:
printf("Invalid week day value\n");
break;
}
return 0;
}