Calculate Hypotenuse using method