开始 |
year=2000 |
year不能被4整除 |
year不能被100整除 |
year=year+1 |
year>2500 |
结束 |
Year不能被400整除 |
输出year “不是闰年” |
输出year “是闰年” |
输出year “不是闰年” |
Y |
N |
Y |
输出year “是闰年” |
N |
Y |
N |
N |
Y |