static private double leg(double c, double a)
static private double hyp(double a, double b)
public static void Main()
Console.WriteLine("Would you like to find the hypotenuse (press 2) or a missing leg (press 1) of a right triangle?");
string choice = Console.ReadLine();
Console.WriteLine("Please enter the leg of the triangle");
double input1 = double.Parse(Console.ReadLine());
Console.WriteLine("Please enter the hypotnuse");
double input2 = double.Parse(Console.ReadLine());
Console.WriteLine("Error leg is bigger than hypotnuse. Please press enter and retry");
double output = leg(input2, input1);
Console.WriteLine("The missing leg is: " + output);
Console.WriteLine("Enter the Length of the 2 legs.");
double input1 = double.Parse(Console.ReadLine());
double input2 = double.Parse(Console.ReadLine());
double output = hyp(input1, input2);
Console.WriteLine("The hypotenuse is: " + output);
Console.WriteLine("Error please press enter");
Console.WriteLine("press q to quit or anything else to use the program again.");
restart = Console.ReadLine();
Console.WriteLine("Thank you for using this program");