asked 11.7k views
5 votes
If a right triangle has sides of length a, b and c and if c is the largest, then it is called the "hypotenuse" and its length is the square root of the sum of the squares of the lengths of the shorter sides (a and b). assume that variables a and b have been declared as doubles and that a and b contain the lengths of the shorter sides of a right triangle: write an expression for the length of the hypotenuse.

1 Answer

2 votes
The expression for the length of hypotenuse is hsquare=psquare + bsquare

No related questions found

Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.