#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
int judge(int x)
{
if ((x % 4 == 0 && x % 100 != 0) || (x % 400 == 0)) return 1;
return 0;
}
int main()
{
int x, y;
printf("请输入一个年份:");
scanf("%d", &x);
y=judge(x);
if (y == 1)printf("是闰年");
else printf("不是闰年");
return 0;
}