A34438.计算日期
2024-12-29 19:36:02
发布于:江苏
7阅读
0回复
0点赞
#include<iostream>
using namespace std;
int main(){
int n;
cin>>n;
n=n%7+1;
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<<"sunday";
}
return 0;
}
这里空空如也
有帮助,赞一个