f(t) = initial balance ( 1 + r )^t
where r = yearly interest percent/100
t is time in integer years after deposit
Write a function that computes the balance of a bank account with a given initial balance and interest rate, after a given number of years. Assume interest is compounded yearly
1 answer