CALCULATORšŸ˜Ž

 num1= float(input("enter the first number"))

op= input("enter the operator")
num2= float (input("enter the second number"))
if op == "+":
print(num1 + num2)
elif op == "-":
print(num1 - num2)
elif op == "/":
print(num1 / num)
elif op == "*":
print(num1 * num2)
else:
print("invalid character")

Comments