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

How is loess different from sand?
potential energy related to an object's height is called
Which ordered pairs make the equation true? 4x – 3y = –10 Choose all answers that are correct. (Points : 1) (–4, –2) (–1, 2) (1, 4)
Which is a “healthful” fat found in plant products and fatty fish? unsaturated fat saturated fat polysaturated fat trans fat
Which was NOT a role of women in the High Middle Ages? a. to operate schools for girls b. to perform agricultural tasks c. to manage household work d. to work a
for years after the Russian revolution of 1917, British secretary of war, Winston Churchill did what?
Kofi estimated that he would run a total of 10 km in 1 h. In 1 h, he actually ran 46 times around a track 0.25 km long, going a total distance of 11.5 km. What
Would you expect to see more biodiversity in a phyla or among members of a class?
There are 6 runners in a race. There will be a first-place and a second-place prize awarded. In how many different ways can the 2 prizes be awarded?
How do i find the slope of a line that passes through a given point and is parallel or perpendicular to another given point?