switch case
2023-10-01 13:29:54
发布于:浙江
2阅读
0回复
0点赞
//#include<iostream>
#include<cstdio>
//#include<algorithm>
//#include<cmath>
//#include<string.h>
using namespace std;
int main()
{
int n;
scanf("%d",&n);
switch(n){
case 1:
printf("Monday");
break;
case 2:
printf("Tuesday");
break;
case 3:
printf("Wednesday");
break;
case 4:
printf("Thursday");
break;
case 5:
printf("Friday");
break;
case 6:
printf("Saturday");
break;
default:
printf("Sunday");
}
return 0;
}
这里空空如也
有帮助,赞一个