Calculates the hypotenuse of a right triangle using the Pythagorean theorem.
Length of one leg.
Length of the other leg.
The length of the hypotenuse.
hypotenuse(3, 4); // returns 5hypotenuse(5, 12); // returns 13 Copy
hypotenuse(3, 4); // returns 5hypotenuse(5, 12); // returns 13
Calculates the hypotenuse of a right triangle using the Pythagorean theorem.