a,b,c=input().split()
a=float(a)
c=float(c)
if b=="+":
print("{:.2f}".format(a+c))
elif b=="-":
print("{:.2f}".format(a-c))
elif b=="*":
print("{:.2f}".format(a*c))
elif b=="/" and abs(c)>=1e-10:
print("{:.2f}".format(a*c))
else:
print("Wrong input!")
zzulioj 1037 python
最新推荐文章于 2024-06-14 09:50:01 发布