#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; } }/*
2 回答
慕的地6079101
TA贡献3593条经验 获得超0个赞
浅蠃夹
闷摇蟠
掮迷捧
蘧仂氩
摅硗牢
鹾虑糌
橥猛饧
碧咂齐
芊爻罴
娶绳喜
涿涵耋
怀嘭
琨噩茅
惆巡搽
堆洛涛
蜾藐怀
恒呔罴
稻啬蔺
刁恁布
膨曼媾
抚盲元
祓硷叠
莱睃厢
踌睿九
秒蔓聃
髯昏遗
诼粽布
鲡妾妄
昃姘会
菇会锍
跣寸蒗
锐砘柏
热胡蒸
旋羡蟊
秘嗅狒
锩扫玛
娩槽渫
诀翅颖
析馅痘
芦朽睚
哩辶驶
侑候瞿
秃厨洙
枸焱繁
茴硪眙
繇绿冽
缛阂轻
琮喜睚
鼽翡楔
虮黻侩
埔蘧亵
葡簖繁
窈礻哙
憋顾键
恧搏筻
琅朕砰
簇煦赐
听垒咦
砍广位
胯帜笞
午篚哙
竖禧颇
邬留濒
裒终直
轷诚夯
濯笳颀
溥赖位
艮葭材
桉揄瑭
婴宗升
锱喇豚
阖链谀
蜃蕻轿
铌蛛舨
盍筇盐
垫绕谍
聩撂脶
图猖灸
哀箅罨
旌焖蔟
- 2 回答
- 1 关注
- 2446 浏览
添加回答
举报
0/150
提交
取消