Advertisement
veronikaaa86

05. Supplies for School

Jul 2nd, 2023
922
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 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.20
  8. price_detergent = detergent_lt * 1.20
  9.  
  10. total_price = price_pen + price_markers + price_detergent
  11. discount = total_price * (discount_percent / 100)
  12. sum_with_discount = total_price - discount
  13.  
  14. print(sum_with_discount)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement