programming-examples/php/Basics/PHP Program to find whether a year is LEAP year or not.php
2019-11-18 14:44:36 +01:00

14 lines
237 B
PHP

<?php
if(isset($_POST['submit']))
{
$year=$_POST['year'];
if($year%4==0)
{
$leap="It is a leap year";
}
else
{
$leap="It is not a leap year";
}
}
?>