结果为啥是217?
#include <stdio.h>
int main()
{
int year = 2008;
int month = 8;0<month<=12;
int day = 8;
int cen;
year=year%4;
if (year==0)
{day+=29 ;
}
else
{day+=28;
}
for( month=month-1;month>=1 ; month--)
{if (month==4||6||9||11)
{cen=2;
}
else
{cen=1;
}
if (month==2)
{continue;
}
switch (cen)
{case 1:
day+=31;
break;
case 2:
day+=30;
break;
}
}
printf ("2008年8月8日是该年的第%d天" , day);
return 0;
}