sub2pewdiepie44
sub2pewdiepie44 sub2pewdiepie44
  • 20-02-2020
  • Computers and Technology
contestada

What is the PHP coding for determining if leap year or not?​

Respuesta :

babalolavicktor babalolavicktor
  • 20-02-2020

Answer:

<!DOCTYPE html>

<html>

<body>

<?php  

$year = 2032;  

if((0 == $year % 4) & (0 != $year % 100) | (0 == $year % 400))

{

echo "$year is a Leap Year.";    

}

else  

{  

echo "$year is not a Leap Year.";    

}

?>

</body>

</html>

Explanation:

Answer Link

Otras preguntas

what class does a crocodile belong to?
what number can be added to 9 to get result of 0
three ways in which one's acceptance of responsibility can influence effective community
Earth’s mantle is a. a layer of molten metal. b. a layer of hot rock. c. a dense ball of solid metal. d. a layer of rock that forms Earth’s outer skin.
Which of the following words is most likely to carry a connotation? A. Stride B. Stand C. Walk D. Run
The chariot was first used as a weapon by the _____. Egyptians Persians Hittites Greeks
Cultures may adopt the values and practices of other groups. a. True b. False
a circle mirror has a diameter of 12 inches. What is the area,in square inches, of the mirror?
I have $200 and i want to have $9,999 what shoyld i do I am grade2G
Which of the following choices is a fragment (an incomplete sentence)? Ever since my sister hacked my facebook account. I ve been very cautious. I never leave m