#include <stdio.h>
int main()
{
/* 定义需要计算的日期 */
int year = 2008;
int month = 8;
int day = 8;
int i,sum;
for(i=0;i<month;i++)
{
switch(i)
{
case 1:
case 3:
case 5:
case 7:sum+=31;
break;
case 4:
case 6:sum+=30;
break;
case 2:sum+=28;
break;
}
}
if(year%4==0&&year%100!=0)
{
sum=sum+1;
}
else
{
sum=sum;
}
sum+=day;
printf("%d年%d月%d日是%d的第%d天",year,month,day,year,sum);
return 0;
}
int sum=0;
sum=sum?