Ruby code to calculate the hypotenuse of the right triangle.