#include <stdio.h> int main() { int a; scanf("%d",&a); switch(a) { case 1:printf("Monday尀n")

2025-04-04 06:35:47
推荐回答(1个)
回答1:

#include
int main()
{
int a; //定义一个变量
scanf("%d",&a);//输入一个字符改变这个变量
switch(a)//输出A的值等于编号case的内容
{
case 1:printf("Monday\n");break;
case 2:printf("Tuesday\n");break;
case 3:printf("Wednesday\n");break;
case 4:printf("Thursday]n");break;
case 5:printf("Friday\n");break;
case 6:printf("Saturday\n");break;
case 7:printf("Sunday\n");break;
}
return 0;
}