判断闰年代码

判断是否是闰年:y%4==0&&y%100!=0 ||y%400==0 ? printf("闰年\n"): printf("不是闰年\n"); 

posted @ 2014-08-25 20:12  依窗听风雨  阅读(1066)  评论(0)    收藏  举报