#include <stdio.h>int main() { int year = 2014; //今年是2014年 //补全一下代码 if(year%4==0) { printf("5s\n","今年是闰年"); } else { printf("%s\n","今年是平年"); }return 0;}
1 回答

Paladin_Roland
TA贡献3条经验 获得超0个赞
你对闰平年规则的理解有误,不是能被4整除就一定是闰年,百年的必须能被400整除才算闰年,2000年是闰年但1900,2100就不是闰年,百度一下闰年里面有规则。
- 1 回答
- 0 关注
- 405 浏览
添加回答
举报
0/150
提交
取消