input

output

1

Saturday

2

Sunday

3

Monday

4

Tuesday

5

Wednesday

6

Thursday

7

Friday

#include<stdio.h>
#include<conio.h>
void main() {
int day_num;
printf(“\nInput the day number =” );
scanf(“%d”, &day_num);
if(day_num == 1) {
printf(“\nIT is Saturday”);
}
if(day_num == 2){
printf(“\nIT is Sunday”);
}
if(day_num == 3){
printf(“\nIT is Monday”);
}
if(day_num == 4){
printf(“\nIT is Tuesday”);
}
if(day_num == 5){
printf(“\nIT is Wednesday”);
}
if(day_num == 6){
printf(“\nIT is Thursday”);
}
if(day_num == 7){
printf(“\nIT is Friday”);
}
}

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *