AC题解
2023-12-01 21:41:05
发布于:上海
1阅读
0回复
0点赞
#include <iostream>
#include <cstdio>
using namespace std;
int main() {
int a;
cin >> a;
switch(a){
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;
}
switch是个好东西
这里空空如也
有帮助,赞一个