4. (Hypotenuse Calculations) Define a function called hypotenuse that calculates the length of the hypotenuse of a right triangle when the other two sides are given. The function should take two arguments of type double and return the hypotenuse as a double. Test your program with the side values specified in Fig




Respuesta :

Hypotenuse = sqrt(a^2 + b^2)

A program in C:
double hypotenuse(int a, int b) {
return sqrt(pow(a, 2) + pow(b, 2));
}