In C++
2.12 LAB: Hypotenuse
Given two numbers that represent the lengths of a right triangle's legs (sides adjacent to the right angle), output the length of the third side (i.e. hypotenuse) with two digits after the decimal point.
Output each floating-point value with two digits after the decimal point, which can be achieved by executingcout < fixed="">< setprecision(2);="" once="" before="" all="" other="" cout="">
Ex: If the input is:
the output is:
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here