Sichanov

charity

May 9th, 2021
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. campaign_days = int(input())
  2. pastry_cook = int(input())
  3. cakes = int(input())
  4. waffles = int(input())
  5. pancakes = int(input())
  6. cake_price = 45
  7. waffles_price = 5.80
  8. pancakes_price = 3.20
  9. total_sum = pastry_cook * campaign_days * ((cakes * cake_price) + (waffles * waffles_price) +
  10.                                            (pancakes * pancakes_price))
  11. expenses = total_sum - total_sum / 8
  12. print(expenses)
Advertisement
Add Comment
Please, Sign In to add comment