Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- profit = 0
- deposit = 500
- years = list(range(1,6))
- for year in years:
- if year == 1:
- profit += 500 * (1 + 0.11)
- else:
- profit = profit * (1 + 0.11)
- print(profit)
- print(f"Сумма вклада через {year} лет увеличится на {profit-deposit} и составит {profit} рублей")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement