Create a program to read the lengths of the two legs


Discuss the below:

Q: 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).

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Create a program to read the lengths of the two legs
Reference No:- TGS01937965

Now Priced at $20 (50% Discount)

Recommended (93%)

Rated (4.5/5)