Advertisement
maximkeremet

Untitled

Dec 9th, 2022
843
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. deposit = 500
  2. years = list(range(1,6))
  3.  
  4. for year in years:
  5.     deposit = deposit * (1 + 0.11)
  6.  
  7. profit = deposit
  8. print(f"Сумма вклада через {year} лет увеличится на {profit - 500} и составит {profit} рублей")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement