fork download
  1. a,b,c=map(str,input().split())
  2. if b == "+":
  3. print(round((float(a)+float(c)),3))
  4. elif b == "-":
  5. print(round((float(a)-float(c)),2))
  6. elif b == "*":
  7. print(round((float(a)*float(c)),2))
  8. elif b == "/":
  9. print(round((float(a)/float(c)),2))
  10.  
Success #stdin #stdout 0.07s 14168KB
stdin
1 + 1
stdout
2.0