Advertisement
Guest User

Christmas Preparation

a guest
Jul 19th, 2021
670
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. packpaper_rolls = int(input())
  2. textile_rolls = int(input())
  3. glue_liters = float(input())
  4. rabatt = int(input())
  5. total_price = 0
  6. price_with_rabatt = 0
  7. paper_price = packpaper_rolls*5.80
  8. textile_price = textile_rolls*7.20
  9. glue_price = glue_liters*1.20
  10. total_price = paper_price + textile_price + glue_price
  11. price_with_rabatt = total_price - total_price*rabatt/100
  12. print(f"{price_with_rabatt:.3f}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement