XJTU_Python/test/2/3.py

11 lines
162 B
Python

a, b = map(float, input().split())
s = input()
if (s == "+"):
print(a+b)
elif (s == "-"):
print(a-b)
elif (s == "*"):
print(a*b)
else:
print(a/b)