#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<math.h>
int main()
{
int year, leap;
printf("请输入一个年份:\n");
scanf("%d", &year);
if (year % 4 == 0)
{
if (year % 100 == 0)
{
if (year % 400 == 0)
leap = 1;
else
leap = 0;
}
else
leap = 0;
}
else
leap = 0;
if (leap)
printf("%d是闰年", year);
else
printf("%d不是闰年", year);
system("pause");
return 0;
}
11-04
4754
08-22
1万+
07-06
1万+
12-15
2386