Guest User

Untitled

a guest
Oct 9th, 2014
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. money = 400000
  2. expenses = 35000
  3. year = 2014
  4. while money > 0:
  5. money = money - expenses
  6. expenses *= 1.03
  7. money *= 1.06
  8. year += 1
  9. print "Year %s: $%.2f" % (year, money)
  10.  
  11. # Year 2015: $386900.00
  12. # Year 2016: $371901.00
  13. # Year 2017: $354855.67
  14. # Year 2018: $335606.84
  15. # Year 2019: $313986.87
  16. # Year 2020: $289817.02
  17. # Year 2021: $262906.70
  18. # Year 2022: $233052.78
  19. # Year 2023: $200038.77
  20. # Year 2024: $163634.02
  21. # Year 2025: $123592.76
  22. # Year 2026: $79653.25
  23. # Year 2027: $31536.71
  24. # Year 2028: $-21053.68
Advertisement
Add Comment
Please, Sign In to add comment