计算二月天数

if((year%4==0&&year%100!=0)||year%400==0)   {   printf("%d is a yunnian,and the datesum is 29 days!\n",year);   }  else printf("%d is not a yunnian,and the datesum is 28 days!\n",year); }

posted @ 2013-03-22 08:57  星期八兜兜  阅读(988)  评论(0编辑  收藏  举报