Source Code:
(back to article)
<?php $side1 = 3; $side2 = 4; // Calculate the length of the hypotenuse using the hypot() function $hypotenuse = hypot($side1, $side2); // Output the length of the hypotenuse echo $hypotenuse; ?>
Result:
Report an issue