#include<stdio.h>
#include<conio.h>
int main( )
{
int dayno;
clrscr( );
printf("\n Enter the day number:");
scanf("%d",&dayno);
if(dayno==1)
printf("The day is Monday");
else if(dayno==2)
printf("The day is Tuesday");
else if(dayno==3)
printf("The day is Wednesday");
else if(dayno==4)
printf("The day is Thursday");
else if(dayno==5)
printf("The day is Friday");
else if(dayno==6)
printf("The day is Saturday");
else if(dayno==7)
printf("The day is Sunday");
else
printf("Wrong day number");
getch();
return 0;
}
No comments:
Post a Comment