fork download
  1. a = int(input())
  2. b = int(input())
  3. c = int(input())
  4.  
  5. s = a + b + c
  6. p = a * b * c
  7. avg = s / 3
  8.  
  9.  
  10. print(f"{a}+{b}+{c}={s}")
  11. print(f"{a}*{b}*{c}={p}")
  12. print(f"({a}+{b}+{c})/3={avg:.6f}")
  13.  
Success #stdin #stdout 0.02s 9256KB
stdin
2
9
5
stdout
2+9+5=16
2*9*5=90
(2+9+5)/3=5.333333