|
发表于 2022-4-5 17:45:13
|
显示全部楼层
#include<iostream>
using namespace std;
int main()
{
int n,m;
cin>> n;
if(n%4==0)
{
if(n%100!=0)
cout << "It's a 普通闰年"<<endl;
else if(n%400==0)
cout << "It's a 世纪闰年"<<endl;
else
cout << "It isn't a 闰年"<<endl;
}
else
{
cout << "It isn't a 闰年"<< endl;
}
return 0;
} |
|