yiquncaiji
2024-01-14 16:16:25
发布于:广东
0阅读
0回复
0点赞
#include <bits/stdc++.h>\
#include <cstdio>
using namespace std;
int n; //全局变量
int main(){
cin>>n;
switch(n)//不能是double类型
{
case 1:
cout<<"Monday";
break;
case 2:
cout<<"Tuesday";
break;
case 3:
cout<<"Wednesday";
break;
case 4:
cout<<"Thursday";
break;
case 5:
cout<<"Friday";
break;
case 6:
cout<<"Saturday";
break;
case 7:
cout<<"Sunday";
break;
}
return 0;
}
这里空空如也
有帮助,赞一个