Ruby code to calculate the hypotenuse of a right triangle.