这个C语言程序illegal else without matching if是怎么回事?
这个C语言程序illegal else without matching if是怎么回事?
日期:2013-11-15 14:06:47 人气:1
#include
int main()
{
int year,leap;
scanf("%d",&year);
if(year%4==0&&year%100!=0) leap=1;
if(year%400==0) leap=1;
else leap=0;
if(leap) printf("%d is",year);
else printf("%d isn't",year);
printf("