#include <stdio.h>
int main()
{
/* 定义需要计算的日期 */
int year = 2008;
int month = 8;
int day = 8;
int a;
swich(mouth)
{
case 1:
a=day;
printf("是第%d天","a");
break;
case 2:
a=31+day;
printf("是第%d天","a");
break;
case 3:
if(year%400==0||year%4==0&&year%100!=0)
{
a=60+day;
}
else
{
a=59+day;
}
printf("是第%d天","a");
break;
case 4:
a=91+day;
printf("是第%d天","a");
break;
case 5:
a=121+day;
printf("是第%d天","a");
break;
case 6:
a=152+day;
printf("是第%d天","a");
break;
case 7:
a=182+day;
printf("是第%d天","a");
break;
case 8:
a=213+day;
printf("是第%d天","a");
break;
case 9:
a=244+day;
printf("是第%d天","a");
break;
case 10:
a=274+day;
printf("是第%d天","a");
break;
case 11:
a=274+31+day;
printf("是第%d天","a");
break;
case 12:
a=274+31+30+day:
printf("是第%d天","a");
break;
default :
a=366;
printf("是第%d天","a");
break;
}
}/*
慕的地6079101
qq_fn小虎007fn_03977581
KanoWill
相关分类