#include <stdio.h>
int main()
{
int year = 2008;
int month = 8;
int day = 8;
int a,b;
switch(month)
{
case 1:a=0;
break;
case 2:a=31;
break;
case 3:a=59;
break;
case 4:a=90;
break;
case 5:a=120;
break;
case 6:a=151;
break;
case 7:a=181;
break;
case 8:a=212;
break;
case 9:a=242;
break;
case 10:a=273;
break;
case 11:a=304;
break;
case 12:a=334;
break;
default:printf("*");
break;
}
if(year%400==0||(year%4==0 && year%100!=0))
b=1;
else
b=0;
if(b==1&&month>2)
a++;
printf("%d年%d月%d日这一天,是该年中的第%d天",year,month,day,a);
return 0;
}