deposit = float(input("Введите сумму вклада: "))interest_rate = float(input("Введите годовой процент: "))
simple_interest = deposit 1+interestrate/100</em>51 + interest_rate / 100 </em> 51+interestr ate/100</em>5
compound_interest = deposit * 1+interestrate/1001 + interest_rate / 1001+interestr ate/100**5
print(f"Сумма вклада через 5 лет (простой процент): {simple_interest}")print(f"Сумма вклада через 5 лет (сложный процент): {compound_interest}")
deposit = float(input("Введите сумму вклада: "))
Способ 1: простой процентinterest_rate = float(input("Введите годовой процент: "))
simple_interest = deposit 1+interestrate/100</em>51 + interest_rate / 100 </em> 51+interestr ate/100</em>5
Способ 2: сложный процентcompound_interest = deposit * 1+interestrate/1001 + interest_rate / 1001+interestr ate/100**5
print(f"Сумма вклада через 5 лет (простой процент): {simple_interest}")
print(f"Сумма вклада через 5 лет (сложный процент): {compound_interest}")