private static ulong fac(ulong a, ulong num)
private static ulong per(ulong num, ulong a)
private static double dec(double num)
public static void Main()
string restart = "anything";
Console.WriteLine("Hello and Welcome to My Probability Calculator! Please Choose an option from the menu!");
Console.WriteLine("If you would like to calculate n!, please press 1." );
Console.WriteLine("If you would like to calculate nPr, please press 2.");
Console.WriteLine("If you would like to calculate nCr, please press 3. ");
Console.WriteLine("If you would like to calculate the mean of a list of numbers, please press 4.");
Console.WriteLine("If you would like to calculate the median of a list of numbers, please press 5.****");
Console.WriteLine("If you would like to calculate the mode of a list of numbers, please press 6. ****");
Console.WriteLine("If you would like to convert a fraction to a decimal, please press 7.");
ulong i = ulong.Parse(Console.ReadLine());
ulong a = ulong.Parse(Console.ReadLine());
ulong num = ulong.Parse(Console.ReadLine());
Console.WriteLine("n!: " + fac(a , num));
ulong a = ulong.Parse(Console.ReadLine());
Console.WriteLine("Fraction to Decimal: " + dec(a));
ulong a = ulong.Parse(Console.ReadLine());
ulong b = ulong.Parse(Console.ReadLine());
Console.WriteLine("Permentation: " + per(a ,b));
Console.WriteLine("Press q to quit or anything else to continue");
restart = Console.ReadLine();