Ruby code to calculate hypotenuse of the right triangle.