Question: Write a Java program. The Pythagorean theorem (which, incidentally, was known to Indian mathematicians a long time before Pythagoras) states that the square of the
Write a Java program.
The Pythagorean theorem (which, incidentally, was known to Indian mathematicians a long time before Pythagoras) states that the square of the hypotenuse of a right-angled triangle is equal to the sum of the squares of the other two sides. Putting it another way, if a triangle has a right angle between sides a and b, then for the third side c the relation c2 = a2 + b2 holds.
Take two sides of a triangle as input and calculate the length of the hypotenuse. Use 3 & 4.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
