Thursday, 18 March 2021

Write a program to accept any year four digits and check whether it is leap year or not

 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