#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <Windows.h>
#include <string.h>
int main()
{
int a, b, c;
printf("请输入年份,来计算是否是闰年");
scanf("%d", &a);
if ((a % 100 != 0 && a % 100 == 4) || a % 400 == 0)
printf("这一年是闰年");
else
printf("这一年不是闰年");
return 0;
}