#include
void main()
{
int year,a;
printf("请输入年份:");
scanf("%d",&year);
if((year/4==0&&year/100!=0)||(year/400==0)) a=1;
else a=0;
if(a=1)
printf("\n%d此年是闰年\n",year);
else printf("%d此年非闰年\n",year);
}
if((year % 400 == 0)||(year % 4 == 0)&&(year % 100 != 0))
是%不是/
不应该用取余数吗