题解
2025-02-06 19:06:31
发布于:江苏
1阅读
0回复
0点赞
#include<iostream>
using namespace std;
int main(){
int month;
cin>>month;
if(month==1||month==3||month==5||month==7||month==8||month==10||month==12){
cout<<31;
}if(month==2){
cout<<28;
}else if(month==4||month==6||month==9||month==11){
cout<<30;
}
return 0;
}
这里空空如也
有帮助,赞一个