programming-examples/php/_Basics/PHP Program to find whether a year is LEAP year or not.php
2019-11-15 12:59:38 +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";
}
}
?>