Advertisement
sredo

01. Cat Expenses

Jun 20th, 2018
834
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. bed = float(input())
  2. cat_toilet = float(input())
  3.  
  4. food = cat_toilet * 1.25
  5. toys = food * 0.5
  6. doctor = toys * 1.1
  7. mont_expenses = cat_toilet + food + toys + doctor
  8. mont_expenses *= 1.05
  9.  
  10. total_expenses = mont_expenses * 12 + bed
  11.  
  12. print(f'{total_expenses:.2f} lv.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement