标签:io amp ef print c as ca include
#include <stdio.h>
void main()
{
int weekday;
printf("请输入星期几:\n");
scanf("%d",&weekday);
switch(weekday)
{
case 1:
printf("星期一\n");
break;
case 2:
printf("星期二\n");
break;
case 3:
printf("星期三\n");
break;
case 4:
printf("星期四\n");
break;
case 5:
printf("星期五\n");
break;
case 6:
printf("星期六\n");
break;
case 7:
printf("星期天\n");
break;
default:
printf("你不是地球人吗?\n");
}
}
标签:io amp ef print c as ca include
原文地址:http://www.cnblogs.com/wenhuan/p/3913283.html