public static void Main()
Console.WriteLine("Welcome to the all purpose calculator");
public static void Selection()
Console.WriteLine("Addition, Subtract, Multiply, Divide, Times tables");
userChoice = Console.ReadLine().ToLower();
if (userChoice == "addition" || userChoice == "add" || userChoice == "adding")
if (userChoice == "subtraction" || userChoice == "subtract" || userChoice == "subtracting")
if (userChoice == "multiply" || userChoice == "multiplication" || userChoice == "multiplying")
if (userChoice == "divide" || userChoice == "dividing" || userChoice == "division")
if (userChoice == "timestable" || userChoice == "timestables")
public static void Addition()
addone = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("added to:");
addtwo = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("The sum is " + total);
public static void Subtraction()
minusone = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("subtracted by:");
minustwo = Convert.ToDouble(Console.ReadLine());
total = minusone - minustwo;
Console.WriteLine("The sum is " + total);
public static void Multiplication()
timesone = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("multiplied by:");
timestwo = Convert.ToDouble(Console.ReadLine());
product = timesone * timestwo;
Console.WriteLine("The product is " + product);
public static void Division()
divideone = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("divided by:");
dividetwo = Convert.ToDouble(Console.ReadLine());
product = divideone / dividetwo;
Console.WriteLine("The product is " + product);
public static void Timestable()
Console.WriteLine("Enter timestable");
timestable = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Where should it stop?");
multiplyUntil = Convert.ToInt32(Console.ReadLine());
for (int x = 0; x <= multiplyUntil; x = x + timestable)
public static void Average()
Console.WriteLine("How many numbers would you like to add up?");
addUp = Convert.ToInt32(Console.ReadLine());
for (int x = 0; x < addUp; x++)
Console.WriteLine("Enter number " + (x + 1));
num = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("The average number is " + average);
public static void Reuse()
Console.WriteLine("Would you like to use the calculator again?");
reuse = Console.ReadLine().ToLower();