A formula exists for calculating the amount of money in a savings account that begins with an initial value (the initial principal, P) and earns interest with an annual interest rate i, for n years: P(1 + i) n .
Write a recursive function that calculates that same value, and check your result against the formula.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here