// Pythagorean theorem to find the length of the hypotenuse
given the lengths of the two opposing sides.
using System;
class Hypo
{
static void Main()
{
double
x, y, z;
x = 3;
y = 4;
z = Math.Sqrt((x
* x) + (y * y));
Console.WriteLine("The Hypotenuse is " +z);
}
}
No comments:
Post a Comment