Pythagorean Theorem

In mathematics, the Pythagorean theorem, also known as Pythagoras' theorem, is a fundamental relation in Euclidean geometry among the three sides of a right triangle. It states that the square of the hypotenuse (the side opposite the right angle) is equal to the sum of the squares of the other two sides.



									/*****Please include following header files*****/
// math.h
/***********************************************/

static double Hypotenuse(double side1, double side2)
{
	return sqrt((side1 * side1) + (side2 * side2));
}
								


Example

									double result = Hypotenuse(8, 3);
								


Output

									result: 8.5440037453175304