Advertisement
Spocoman

Charity Campaign

Jan 5th, 2022
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. days = int(input())
  2. cookers = int(input())
  3. cakes = int(input()) * 45
  4. waffle = int(input()) * 5.80
  5. pancakes = int(input()) * 3.20
  6. total = days * (cookers * (cakes + waffle + pancakes))
  7. print(total - total / 8)
  8.  
  9.  
  10.  
  11. Тарикатско решение :)))
  12.  
  13. total = int(input()) * (int(input()) * (int(input()) * 45) + (int(input()) * 5.80) + (int(input()) * 3.20))
  14. print(total - total / 8)
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement