Teo_Yanchev

school_supplies_28-29-2020_exam

Jul 17th, 2020
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. pencils_packs = int(input())
  2. markers_packs = int(input())
  3. detergent_l = float(input())
  4. percent_discount = int(input())
  5.  
  6. pencils = pencils_packs * 5.80
  7. markers = markers_packs * 7.20
  8. detergent = detergent_l * 1.20
  9.  
  10. total = pencils + markers + detergent
  11. total_with_discount = total - ((percent_discount * total) / 100)
  12. print(f"{total_with_discount:.3f}")
Advertisement
Add Comment
Please, Sign In to add comment