#include <iostream.h>		// So we can do output
#include <math.h>		// Needed for sqrt

float Square(float x);		// Procedure Declaration

float HypLength(float s1, float s2)	
{
    float sumOfSquares;

	sumOfSquares = Square(s1) + Square(s2);
	return sqrt(sumOfSquares);
}

float Square(float x)		// Procedure Definition
{
    return x * x;
}

int main()
{
    float side1;		// Hold the lengths of the sides
    float side2;

	cout << "Please enter both side lengths: ";
	cin >> side1 >> side2;
	cout << HypLength(side1, side2);

	return 0;
}

