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
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
Social Sciences,
4 days ago
Hindi,
4 days ago
Chemistry,
8 days ago
Math,
8 days ago
Science,
8 months ago