解题思路:
注意事项:单词不要拼错!!!!!!!!!!!!!!!!!!!!
参考代码:
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a;
cin>>a;
if(a==0)
{
cout<<"Sunday";
}
else if(a==1)
{
cout<<"Monday";
}
else if(a==2)
{
cout<<"Tuesday";
}
else if(a==3)
{
cout<<"Wednesday";
}
else if(a==4)
{
cout<<"Thursday";
}
else if(a==5)
{
cout<<"Friday";
}
else if(a==6)
{
cout<<"Saturday";
}
else
{
cout<<"input error!";
}
return 0;
}
0.0分
1 人评分