using System;
class HypotenuseCalculator
{
static void Main()
{
double a = 7;
double b = 5;
double h1 = Math.Sqrt(Math.Pow(a, 2) + Math.Pow(b, 2));
Console.WriteLine($"The hypotenuse (h) is: {h1:F6}");
double h2 = Math.Sqrt(a * a + b * b);
Console.WriteLine($"The hypotenuse (h) is: {h2:F6}");
}
}
/*
run:
The hypotenuse (h) is: 8.602325
The hypotenuse (h) is: 8.602325
*/