error C2085: 'year' : not in formal parameter list
又出现问题了#include<stdio.h>intmain()intyear;{year=2000;while(year<=2500){if(((year/4==0)&...
又出现问题了
#include <stdio.h>
int main ()
int year;
{
year=2000;
while (year<=2500)
{
if( ((year/4==0)&&(year/100!=0))||(year/400==0) )
printf("%d是闰年\n",year);
else
printf ("%d不是闰年\n",year);
year=year+1;
}
return 0;
} 展开
#include <stdio.h>
int main ()
int year;
{
year=2000;
while (year<=2500)
{
if( ((year/4==0)&&(year/100!=0))||(year/400==0) )
printf("%d是闰年\n",year);
else
printf ("%d不是闰年\n",year);
year=year+1;
}
return 0;
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询