5.7: Exercise
( \newcommand{\kernel}{\mathrm{null}\,}\)
Before you go on, you might want to work on the following exercise.
Write a function called hypotenuse
that takes two parameters, a
and b
, that represent the lengths of two sides of a right triangle. It should assign to res
the length of the third side of the triangle, given by the formula
c=√a2+b2