public static string output;
public static int firstNumber;
public static int secondNumber;
public static string operators;
public static void Main()
Console.Write("Input first number: ");
Console.Write("Input second number: ");
Console.WriteLine("(A)ddition");
Console.WriteLine("(S)ubtraction");
Console.WriteLine("(M)ultiplication");
Console.WriteLine("(D)ivision");
Console.Write("Input operator: ");
operators = Console.ReadLine();
output = "the sum of " + firstNumber + " and " + secondNumber + " is equal to " + Add(firstNumber, secondNumber);
else if (operators == "S"){
output = "the difference of " + firstNumber + " and " + secondNumber + " is equal to " + Subtract(firstNumber, secondNumber);
else if (operators == "M"){
output = "the product of " + firstNumber + " and " + secondNumber + " is equal to " + Multiply(firstNumber, secondNumber);
else if (operators == "D"){
output = "the quotient of " + firstNumber + " and " + secondNumber + " is equal to " + Divide(firstNumber, secondNumber);
Console.WriteLine("UNIDENTIFIED OPERATOR FAM");
public static void GetValue() {
firstNumber = Convert.ToInt32(Console.ReadLine());
secondNumber = Convert.ToInt32(Console.ReadLine());
public static int Add(int a, int b){
public static int Subtract(int a, int b){
public static int Multiply(int a, int b){
int multiplication = a * b;
public static int Divide(int a, int b){
public static void DisplayResult(){
Console.WriteLine(output);