Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def compute_income(deposit, interest_rate, amount_months):
- z = deposit * (1 + interest_rate / (12 * 100)) ** amount_months - deposit
- return z
- k = 8 # занести процент вклада
- n = 14# занести количество месяцев
- s = 938# занести прибыль
- # вывести результат
- for x in range(9600, 9630):
- income = compute_income(x, k, n)
- if round(income) == s:
- print('Верно', x)
- elif round(income) != s:
- print('неверно', x)
Add Comment
Please, Sign In to add comment