题目内容
以下程序计算某年某月有几天。其中判别闰年的条件是:能被4整除但不能被100整除的年是闰年,能被400整除的年也是闰年。请在_____________内填入正确内容。#include ″stdio.h″void main(){int yy,mm,len;printf(″year,month=″);scanf(″%d %d″,&yy,&mm);switch(mm){case 1: case 3: case 5: case 7:case 8: case 10: case 12:_____________;break;case 4: case 6 case 9: case 11: len=30;break;case 2:if(_____________)len=29;else_____________;break;default:printf(″input error″);break;}printf(″the length of %d %d is %d\n″,yy,mm,len);}
查看答案
搜索结果不匹配?点我反馈
更多问题