萌新初来乍到求大佬求解惑
#include<stdio.h>int main()
{
int year;
for(year=2000;year<=2500;year++)
{
if(year%4!=0)
else if(year%100!=0)
{ printf("%d是闰年\n",year);
continue;
}
else if(year%400!=0)
{printf("%d是闰年\n ",year);
continue;
}
}
printf("\n");
return 0;
}
出现这个error C2181: illegal else without matching if怎么解决呢
求大佬帮忙解答谢谢