题解
2024-09-27 21:58:37
发布于:广东
0阅读
0回复
0点赞
禁止抄袭
#include<bits/stdc++.h>
using namespace std;
int main() {
long long a=0;//定义a
cin>>a;//输入a
int b=a%7;//计算周期
b++;
switch(b){//switch判断今天周几
case 1:cout<<"monday"<<endl;break;
case 2:cout<<"tuesday"<<endl;break;
case 3:cout<<"wednesday"<<endl;break;
case 4:cout<<"thursday"<<endl;break;
case 5:cout<<"friday"<<endl;break;
case 6:cout<<"saturday"<<endl;break;
case 7:cout<<"sunday"<<endl;break;
}
return 0;
}
这里空空如也
有帮助,赞一个