Question: Visual studio, c++ 4. (5 points) Write a function named rightTriangle that accepts the lengths of two sides of a right triangle as the arguments
4. (5 points) Write a function named rightTriangle that accepts the lengths of two sides of a right triangle as the arguments a and b. The function should determine and return the hypotenuse, c, of the triangle. Include the function in a complete C++ program that calls the function with two integers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
