Advertisement
Spocoman

Cat Expenses

Jan 7th, 2022
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. bed = float(input())
  2. toilet = float(input())
  3.  
  4. food = toilet * 1.25
  5. toys = food / 2
  6. vet = toys * 1.1
  7. total = (toilet + food + toys + vet) * 12 * 1.05 + bed
  8. print(f'{total:.2f}')
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement