if语句的使用疑惑
写程序,判断某一年是否闰年#include <stdio.h>
void main()
{
int year,leap;
scanf("%d",&year);
if(year%4==0);
{if(year%100==0) leap==0;
{if(year%400==0) leap==1;
else leap==0;
}
else leap==1;
}
else leap==0;
}
if (leap==1) printf("%d is a leap year.\n",year);
else printf("%d is not a leap year.\n",year);
}
请高人看一下哪出错了