解题思路:
注意事项:
参考代码:
#include<iostream> using namespace std; int main() { int n; cin>>n; switch(n) { 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; default:cout<<"input error!"; } return 0; }
0.0分
1 人评分