Tariqul_Islam

URI 1006

Jan 11th, 2021
600
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. a = float (input(""))
  2. b = float (input(""))
  3. c = float (input(""))
  4. x = "{:.2f}".format(a)
  5. y = "{:.2f}".format(b)
  6. z = "{:.2f}".format(c)
  7. m = float(x)*2
  8. n = float(y)*3
  9. o = float(z)*5
  10. sum = float(m)+float(n)+float(o)
  11. avg = sum/(2+3+5)
  12. formatted_float = "{:.1f}".format(avg)
  13. print("MEDIA =",formatted_float)
RAW Paste Data