#include // this function computes the length of the hypotenuse // given the lengths of the two sides. // prototype declarations double hypotenuse(double x, double y); int main(void) { double a, b; cout << "Enter a and b: "; cin >> a; cin >> b; cout << "The hypotenuse has length " << hypotenuse(a,b) << endl; } double hypotenuse(double x, double y) { return sqrt(x*x+y*y); }