Home > Q&A > body text
How to write the assignment that cannot be divisible by 100 and 400
小明2018-12-05 19:36:34
$a=2000; if (($a%400==0)&&($a%100==0)) { echo "整除!"; }else{ echo "不整除了!"; }
It seems that you are doing an exercise to find a leap year. You cannot form a team, so you need to add % before it!