题解
2023-08-08 16:30:02
发布于:浙江
1阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
char n; //char好像只用1字节
int main()
{
cin>>n;
if(n=='7')
cout<<"Sunday";
else if(n=='1')
cout<<"Monday";
else if(n=='2')
cout<<"Tuesday";
else if(n=='3')
cout<<"Wednesday";
else if(n=='4')
cout<<"Thursday";
else if(n=='5')
cout<<"Friday";
else
cout<<"Saturday";
return 0;
}
这里空空如也
有帮助,赞一个