$n = 0;//个数
for($year=2000;$year<=3000;$year++){
if ($year%4==0&&$year%100!=0||$year%400==0) {
$n++;
}
}
echo $n;
闰年个数
最新推荐文章于 2022-09-01 16:42:35 发布
$n = 0;//个数
for($year=2000;$year<=3000;$year++){
if ($year%4==0&&$year%100!=0||$year%400==0) {
$n++;
}
}
echo $n;