Easy
2023-07-14 20:49:47
发布于:上海
20阅读
0回复
0点赞
#include <iostream>
using namespace std;
int main(){
int n;
cin >> n;
n+=1;
n=n%7;
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;
case 0: cout << "sunday" ; break;
}
return 0;
}
这里空空如也
有帮助,赞一个