Write a program to read the lengths
Not what you're looking for? Search our solutions OR ask your own Custom question.
Write a program to read the lengths of the two legs of a right triangle and to calculate and display the area of the triangle (one-half the product of the legs) and the length of the hypotenuse (square root of the sum of the square of the legs).
© BrainMass Inc. brainmass.com December 24, 2021, 5:09 pm ad1c9bdddfhttps://brainmass.com/computer-science/cpp/writing-program-read-lengths-31574
Solution Summary
The solution writes a program to read the lengths.
$2.49