public static void Main()
Console.WriteLine("CALCULATOR MENU");
Console.WriteLine("1) Add two numbers.");
Console.WriteLine("2) Subtract one number from another.");
Console.WriteLine("3) Multiply two numbers.");
Console.WriteLine("4) Divide one number by another.");
Console.WriteLine("5) Calculate the remainder from dividing one number by another.");
Console.Write("Please make your selection:");
string myStringVar = Console.ReadLine();
if (!float.TryParse(myStringVar, out testFloat))
Console.WriteLine("Invalid number format");
Console.WriteLine("Please restart the application");
Console.WriteLine("Where Sum = OperandA + OperandB:");
Console.Write("Please enter OperandA: ");
string operandA = Console.ReadLine();
if (float.TryParse(operandA, out valueA))
Console.Write("Please enter OperandB: ");
string operandB = Console.ReadLine();
if (float.TryParse(operandB, out valueB))
float sumTotal = valueA + valueB;
Console.WriteLine("Sum = " + sumTotal);
Console.WriteLine("The operation has successfully completed.");
Console.WriteLine("Please press'Enter' to stop the program.");
Console.WriteLine("Invalid entry");
Console.WriteLine("Please restart the application");
Console.WriteLine("Invalid entry");
Console.WriteLine("Please restart the application");
Console.WriteLine("Where Difference = OperandA - OperandB:");
Console.Write("Please enter OperandA: ");
string operandA = Console.ReadLine();
if (float.TryParse(operandA, out valueA))
Console.Write("Please enter OperandB: ");
string operandB = Console.ReadLine();
if (float.TryParse(operandB, out valueB))
float differenceTotal = valueA - valueB;
Console.WriteLine("Difference = " + differenceTotal);
Console.WriteLine("The operation has successfully completed.");
Console.WriteLine("Please press'Enter' to stop the program.");
Console.WriteLine("Invalid entry");
Console.WriteLine("Please restart the application");
Console.WriteLine("Invalid entry");
Console.WriteLine("Please restart the application");
Console.WriteLine("Where Product = OperandA * OperandB:");
Console.Write("Please enter OperandA: ");
string operandA = Console.ReadLine();
if (float.TryParse(operandA, out valueA))
Console.Write("Please enter OperandB: ");
string operandB = Console.ReadLine();
if (float.TryParse(operandB, out valueB))
float productTotal = valueA * valueB;
Console.WriteLine("Difference = " + productTotal);
Console.WriteLine("The operation has successfully completed.");
Console.WriteLine("Please press'Enter' to stop the program.");
Console.WriteLine("Invalid entry");
Console.WriteLine("Please restart the application");
Console.WriteLine("Invalid entry");
Console.WriteLine("Please restart the application");
Console.WriteLine("Where Quotient = OperandA / OperandB:");
Console.Write("Please enter OperandA: ");
string operandA = Console.ReadLine();
if (float.TryParse(operandA, out valueA))
Console.Write("Please enter OperandB: ");
string operandB = Console.ReadLine();
if (float.TryParse(operandB, out valueB))
float productTotal = valueA / valueB;
Console.WriteLine("Difference = " + productTotal);
Console.WriteLine("The operation has successfully completed.");
Console.WriteLine("Please press'Enter' to stop the program.");
Console.WriteLine("Invalid entry");
Console.WriteLine("Please restart the application");
Console.WriteLine("Invalid entry");
Console.WriteLine("Please restart the application");
Console.WriteLine("Where Modulus = OperandA % OperandB:");
Console.Write("Please enter OperandA: ");
string operandA = Console.ReadLine();
if (float.TryParse(operandA, out valueA))
Console.Write("Please enter OperandB: ");
string operandB = Console.ReadLine();
if (float.TryParse(operandB, out valueB))
float productTotal = valueA % valueB;
Console.WriteLine("Difference = " + productTotal);
Console.WriteLine("The operation has successfully completed.");
Console.WriteLine("Please press'Enter' to stop the program.");
Console.WriteLine("Invalid entry");
Console.WriteLine("Please restart the application");
Console.WriteLine("Invalid entry");
Console.WriteLine("Please restart the application");
if (!(myStringVar == "1" || myStringVar == "2" || myStringVar == "3" || myStringVar == "4" || myStringVar == "5"))
Console.WriteLine("Invalid entry");
Console.WriteLine("Please restart the application");