Growth of a Bank Account
Determine how long it will take to accumulate at least $10.000 in a bank account if you deposit $500 initially and $500 at the end of each year. if the account pays 5 percent annual interest.
Because we do not know how many years it will take, a while loop should be used. The ,
script file is the following.
The final results are amount 14 years.