write a program to accept two number and and operator to perform arithmetic operation addition subtraction and multiplication result of the mathematical operator along with the appropriate message If the other than plus or minus or division is entered then the improve grammar should display error message
Answers
Answered by
2
Answer:
#CALC #PYTHON
Explanation:
a = int(input("ENTER FIRST NO. : "))
b = input("ENTER OPERATOR : ")
c = int(input("ENTER SECOND NO. :"))
if b=="+":
print(a+c)
elif b=="-":
print(a-c)
elif b=="*":
print(a*c)
elif b=="/":
print(a/c)
else:
print("IMPROVE GRAMMER")
Similar questions
Social Sciences,
7 months ago
History,
7 months ago
Math,
7 months ago
Science,
1 year ago
History,
1 year ago