#include #include using namespace std; int main() { double hypoteneuse(double a, double b); double a, b, c; // three sides of a right triangle cout << "Enter the length of side a of right triangle: "; cin >> a; cout << "Enter the length of side b of a right triangle: "; cin >> b; c = hypoteneuse(a, b); cout << "The length of the hypoteneuse c is " << c << endl; return 0; } double hypoteneuse(double a, double b) { double c = sqrt(a*a + b*b); return c; }