Question: Write a C++ program that calculates the hypotenuse h (long side of a right triangle), when the 2 legs (c1, c2) (short sides of

Write a C++ program that calculates the hypotenuse h (long side of 

Write a C++ program that calculates the hypotenuse h (long side of a right triangle), when the 2 legs (c1, c2) (short sides of the right triangle) are known. The formula for this is: h = c1 + c22 Remember that a right triangle is one with an angle of 90 degrees, as shown in the following figure: 1 c1 c2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!