#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
int years;
printf("请输入年份:\n");
scanf("%d", &years);
if (years % 400 == 0 || years % 4 == 0 && years % 100 != 0)
printf("%d年为闰年\n",years);
else
printf("%d年为平年\n",years);
return 0;
}
12-14
1730
04-15
562
08-01
1366