public static void Main()
Console.WriteLine("Enter a number");
Console.WriteLine("Enter another number");
Console.WriteLine("Enter a mathematical function between: MOD, DIV, EXP");
response = Console.ReadLine();
MOD(Convert.ToInt32(a), Convert.ToInt32(b));
else if (response == "DIV")
DIV(Convert.ToInt32(a), Convert.ToInt32(b));
else if (response == "EXP")
EXP(Convert.ToInt32(a), Convert.ToInt32(b));
public static void MOD(int c, int d)
Console.WriteLine("The MOD value is " + (c % d));
public static void DIV(int c, int d)
Console.WriteLine("The DIV value for the first number divided by the second number is " + (c / d));
public static void EXP(int c, int d)
for (int z = 0; z < d; z++)
Console.WriteLine("The EXP value is: " + result);