Advertisement
veronikaaa86

05. Supplies for School

Oct 30th, 2022
911
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. pen_count = int(input())
  2. markers_count = int(input())
  3. detergent_lt = int(input())
  4. discount_percent = int(input())
  5.  
  6. price_pen = pen_count * 5.80
  7. price_markers = markers_count * 7.2
  8. price_detergent = detergent_lt * 1.20
  9.  
  10. all_price = price_pen + price_markers + price_detergent
  11. discount = all_price * (discount_percent / 100)
  12. total_sum = all_price - discount
  13.  
  14. print(total_sum)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement