Question: 4.)(General math) a. Write a function named rightTriangle() that accepts the lengths of two sides of a right triangle as the arguments a and b.

4.)(General math) a. Write a function named rightTriangle() that accepts the lengths of two sides of a right triangle as the arguments a and b. The subroutine should determine and return accepts 4.J(General math) a. Write a function named rightTriangle) the hypotenuse, c, of the triangle. (Hint: Use Pythagoras' theorem,-a+ ) b. Include the function written for Exercise 4a in a working program. The main) function should call rightTriangle) correctly and display the value the function returns
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
