Advertisement
JeXerT

задачата

Feb 27th, 2022
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. paint = int(input())
  2. wallpaper = int(input())
  3. price_of_gloves = float(input())
  4. price_of_paintbrush = float(input())
  5.  
  6. price_of_paint = 21.50 * paint
  7. price_of_wallpaper = 5.20 * wallpaper
  8. number_of_gloves = wallpaper * 0.35
  9. number_of_paintbrushes = paint * 0.48
  10. total_price_of_gloves = number_of_gloves * price_of_gloves
  11. total_price_of_paintbrushes = number_of_paintbrushes * price_of_paintbrush
  12. total_sum = price_of_paint + price_of_wallpaper + total_price_of_gloves + total_price_of_paintbrushes
  13. delivery_price = total_sum / 15
  14. print(f"This delivery will cost {delivery_price:2f} lv.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement