#include<stdio.h>
int main(void)
{
int year;
printf("输入年份:");
scanf("%d",&year);
while(year!=-1){
if((year%4==0&&year%100!=0)||(year%400==0))
{
printf("这一年是 闰年\n");
printf("输入年份:");
scanf("%d",&year);
}
else{
printf("这一年不是闰年\n");
printf("输入年份:");
scanf("%d",&year);
}
}
return 0;
}