Computer Science, asked by adilhafeezmohd, 8 months ago

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 chiefprashant
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