Advertisement
simeonshopov

Charity Campaign

Sep 9th, 2019
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. days=int(input())
  2. cooks=int(input())
  3. cakes=int(input())
  4. gofreti=int(input())
  5. pancakes=int(input())
  6. total=cooks*(days*(cakes*45+gofreti*5.80+pancakes*3.20))
  7. expense=total/8
  8. print(f"{(total-expense):.2f}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement