Write a program to accept any year four digits and check whether it is leap year or not
<title>Write a program to accept any year four digits and check whether it is leap year or not</title>
<?php
/* Write a program to accept any year four digits and check
whether it is leap year or not.*/
$y=2000;
if($y%4==0)
{
print"Leap Year";
}
else
{
print"Not Leap Year";
}
?>
No comments:
Post a Comment