#include<stdio.h>
#include<string.h>
#include<math.h>
#define _CRT_SECURE_NO_WARNINGS
int pdrn(int x)
{
if ((x % 4 == 0) && (x % 100 != 0))
return 1;
if (x % 400 == 0)
return 1;
else
return 0;
}
int main()
{
int a = 0;
printf("请输入一个年份%s\n");
scanf_s("%d",&a);
if (pdrn(a) == 1)
{
printf("这是闰年%d\n", a);
}
else
printf("这不是闰年%d\n", a);
return 0;
}