#include<stdio.h>
void main()
{
int n;
printf("Enter a day number");
scanf("%d",&n);
if(i==1)
printf("\nSunday");
else if(i==2)
printf("\nMonday");
else if(i==3)
printf("\nTuesday");
else if(i==4)
printf("\nWednesday");
else if(i==5)
printf("\nThursday");
else if(i==6)
printf("\nFriday");
else if(i==7)
printf("\nSaturday");
else
printf("\n Invalid day entered");
}
0 Comments