请大家帮忙看下我的哪里出了问题,谢谢
#include <stdio.h>
int main()
{
int sum;
int year = 2008;
int month = 8;
int day = 8;
if(year%4==0)
{
switch(month)
{
case 8:
sum=(year-1)*30+day-1;
}
printf("year年month月day日是该年的第%d天\n",year,month,day,sum);
}
else
{
switch(month)
{
case 8:
sum=year*30+day;
}
printf("year年month月day日是该年的第%d天\n",year,month,day,sum);
}
return 0;
}