#include<stdio.h>
void main()
{
int year;
printf("\n请输入年份(yyyy):");
scanf_s("%d", &year);
if (year % 4 == 0 && year % 100 == 0 || year % 400 == 0)//符号||表示或者
printf("%d年是闰年.\n", year);
else printf("%d年是平年.\n", year);
}