C语言学习笔记(六)--分支程序设计(二)

2014-11-23 23:55:10 · 作者: · 浏览: 52
;

if(leap==1&&month>2) /*如果是闰年且月份大于2,总天数应该加一天*/

sum++;

printf("It is the %dth day.",sum);

}


摘自 letthinking的专栏