#include
enum WEEK{MONDAY=1,TUESDAY,WEDNESDAY,THURSDAY,FRIDAY,SATURDAY,SUNDAY=0};
int main(int argc,char** argv)
{
unsigned int day;
printf("输入数字:");
scanf("%u",&day);
switch(day%7)
{
case MONDAY:
printf("the day is Monday!\n");
break;
case TUESDAY:
printf("the day is Tuesday!\n");
break;
case WEDNESDAY:
printf("the day is Wednesday!\n");
break;
case THURSDAY:
printf("the day is Thursday!\n");
break;
case FRIDAY:
printf("the day is Friday!\n");
break;
case SATURDAY:
printf("the day is Saturday!\n");
break;
case SUNDAY:
printf("the day is Sunday!\n");
break;
}
return 0;
}