Answers for "Code to check Check whether a year is leap year or not"

PHP
0

Code to check Check whether a year is leap year or not

<?php
    $year = 2022;
    if($year % 4 == 0) {
      echo $year." is a leap year";
    }
    else {
      echo $year." is a not leap year";
    }
  ?>
Posted by: Guest on April-10-2022

Code answers related to "Code to check Check whether a year is leap year or not"

Browse Popular Code Answers by Language