Advertisement
D1mitroV

06. Charity Campaign *

Apr 4th, 2021
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. numberDays = int(input())
  2. numberWorkers = int(input())
  3. numberCakes = int(input())
  4. numberGoffrets = int(input())
  5. numberPancaces = int(input())
  6. numberCakesDaily = numberCakes * 45
  7. numberGoffretsDaily = numberGoffrets * 5.80
  8. numberPancacesDaily = numberPancaces * 3.20
  9. allAmountFor1Day = (numberCakesDaily + numberPancacesDaily + numberGoffretsDaily) * numberWorkers
  10. amountAllCamp = allAmountFor1Day * numberDays
  11. afterPaying = amountAllCamp - (amountAllCamp/8)
  12. print(afterPaying)
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement