Advertisement
veronikaaa86

05. Supplies for School

Sep 11th, 2022
1,099
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 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. markers_price = markers_count * 7.20
  8. detergent_price = detergent_lt * 1.20
  9.  
  10. all_price = price_pen + markers_price + detergent_price
  11.  
  12. discount_sum = all_price * (discount_percent / 100)
  13. total_sum = all_price - discount_sum
  14.  
  15. print(total_sum)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement