#include"iostream.h"
#include"stdio.h"
void main()
{
int year;
cout<<"请输入年份:"<<endl;
cin>>year;
if(year%4==0&&year%100!=0||year%400==0)
cout<<year<<"是闰年!"<<endl;
else
cout<<year<<"不是闰年!"<<endl;
}
#include"stdio.h"
void main()
{
int year;
cout<<"请输入年份:"<<endl;
cin>>year;
if(year%4==0&&year%100!=0||year%400==0)
cout<<year<<"是闰年!"<<endl;
else
cout<<year<<"不是闰年!"<<endl;
}