-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathc11.c
More file actions
30 lines (28 loc) · 703 Bytes
/
c11.c
File metadata and controls
30 lines (28 loc) · 703 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
//print day of week using switch case
#include<stdio.h>
int main()
{
int ch;
printf("enetr number btw 1-7: ");
scanf("%d",&ch);
switch(ch)
{
case 1:printf("monday");
break;
case 2:printf("tuesday");
break;
case 3:printf("wednesday");
break;
case 4:printf("thursday");
break;
case 5:printf("friday");
break;
case 6:printf("saturday");
break;
case 7:printf("sunday");
break;
default:printf("madarchodh teri choice galat hai lodu");
break;
}
return 0;
}