The Tech Platform

Jun 21, 20211 min

Write a Program to find the Minimum and Maximum Number from the list using PHP.

Code:

<!DOCTYPE html>
 
<html>
 
<body>
 

 
<?php
 
echo("Minimum Value from (42, 243, 532, 200, -80, -35)= " . min(42, 243, 532, 200, -80, -35) . "<br>". "<br>");
 
echo("Maximum Value from (42, 243, 532, 200, -80, -35)= " . max(42, 243, 532, 200, -80, -35));
 
?>
 

 
</body>
 
</html>

Output:

Sofia Sondh

The Tech Platform

www.thetechplatform.com

    0