Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
296 B
8
Indexable
Never
num1 = float(input("Enter First Number: "))
op = input("Enter Operator Symbol: ")
num2 = float(input("Enter Second Number: "))

if op == "+":
    print(num1 + num2)
elif op == "-":
    print(num1 - num2)
elif op == "*" :
    print(num1 * num2)
elif op == "/" :
    print(num1 / num2)