TRY YOURSELF
#include<stdio.h>
#include<conio.h>
void main()
{
int week_day;
OUTPUT
scanf("%d", &week_day);
switch(week_day)
{
case 1:
printf("SUNDAY");
break;
case 2:
printf("MONDAY");
break;
case 3:
printf("TUESDAY");
break;
case 4:
printf("WEDNESDAY");
break;
case 5:
printf("THURSDAY");
break;
case 6:
printf("FRIDAY");
break;
case 7:
printf("SATURDAY");
break;
default:
printf("Not a valid entry");
}
getch();
}
program that demonstrates the working of a switch/ case statement /
printf
Answers
Answered by
0
Answer:
ok....................m
Answered by
0
Answer:
I can't understand your question
Similar questions