OneCompiler

Leap year

136
<?php function leapYear($year){ if($year %4 === 0 || $year % 100 !== 0 && $year % 400 === 0){ echo "Leap Year"; } else{ echo "Not a Leap Year"; } } leapYear(2004); ?>