#include<stdio.h>
#include<conio.h>
void main()
{
int day;
clrscr();
printf("\n Enter day in numbers 1 to 7");
scanf("%d",&day);
switch(day)
{
case 1 :
printf("\n Monday");
break;
case 2 :
printf("\n Tuesday");
break;
case 3 :
printf("\n Wednesday");
break;
case 4 :
printf("\n Thursday");
break;
case 5 :
printf("\n Friday");
break;
case 6 :
printf("\n Saturday");
break;
case 7 :
printf("\n Sunday");
break;
defaul :
printf("\n Wrong Input");
}
}
#include<conio.h>
void main()
{
int day;
clrscr();
printf("\n Enter day in numbers 1 to 7");
scanf("%d",&day);
switch(day)
{
case 1 :
printf("\n Monday");
break;
case 2 :
printf("\n Tuesday");
break;
case 3 :
printf("\n Wednesday");
break;
case 4 :
printf("\n Thursday");
break;
case 5 :
printf("\n Friday");
break;
case 6 :
printf("\n Saturday");
break;
case 7 :
printf("\n Sunday");
break;
defaul :
printf("\n Wrong Input");
}
}
No comments:
Post a Comment