static private double hyp(double a, double b)
static private double lrt(double a, double c)
public static void Main()
Console.WriteLine("Press 1 if you want to find the hypotenuse. Press 2 if you want to find the leg.");
double pick = double.Parse(Console.ReadLine());
Console.WriteLine("Enter the length of side a");
double leg1 = double.Parse(Console.ReadLine());
Console.WriteLine("Enter the length of side b");
double leg2 = double.Parse(Console.ReadLine());
Console.WriteLine("The length of the hypotenuse of your right traingle is: " + hyp(leg1, leg2).ToString("##.##"));
Console.WriteLine("Enter the length of side a");
double sidea = double.Parse(Console.ReadLine());
Console.WriteLine("Enter the length of the hypotenuse");
double hypot = double.Parse(Console.ReadLine());
Console.WriteLine("The length of the missing leg of your right traingle is: " + lrt(sidea, hypot).ToString("##.##"));