English, asked by kaiswarya9797, 8 days ago

2. Your program should ask you to enter two
numbers and operator. Depending upon that
operator you will perform addition
subtraction, multiplication and division,

Answers

Answered by sarthakkhatale
0

Answer:

I will do this in Python.

Explanation:

Num1 = input("Enter first number. ")

Num2 = input("Enter second number. ")

Operator = input("Enter Operator")

def Addition();

Num1 + Num2

def Subtraction();

Num1 - Num2

def Multiplication();

Num1 * Num2

def Division();

Num1 / Num2

if Operator == "*";

Multiplication()

if Operator == "/";

Division()

if Operator == "+";

Addition()

if Operator == "-";

Subtraction()

Done!

Similar questions