<?php
$a = 3;
$b = 4;
$c = hypot ($a, $b);
echo "a = " .$a. "<br>";
echo "b = " .$b. "<br>";
echo "c = " .$c. "<br>";
?> Again, with this script you can replace a and b with any values and it will calculate c.
By Angela Bradley, About.com Guide
<?php
$a = 3;
$b = 4;
$c = hypot ($a, $b);
echo "a = " .$a. "<br>";
echo "b = " .$b. "<br>";
echo "c = " .$c. "<br>";
?> Again, with this script you can replace a and b with any values and it will calculate c.
©2012 About.com. All rights reserved.
A part of The New York Times Company.