Sichanov

supplies for school

Sep 12th, 2021
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. pens = int(input())
  2. markers = int(input())
  3. liters = int(input())
  4. percent = int(input())
  5.  
  6. price_pens = pens * 5.80
  7. price_markers = markers * 7.20
  8. price_prep = liters * 1.20
  9. total_price = price_prep + price_markers + price_pens
  10. final_price = total_price - total_price * (percent / 100)
  11. print(final_price)
Advertisement
Add Comment
Please, Sign In to add comment