home *** CD-ROM | disk | FTP | other *** search
/ Compute! Gazette 1994 November / 1994-11b.d64 / compounding (.txt) < prev    next >
Commodore BASIC  |  2022-09-20  |  209b  |  8 lines

  1. 10 input"[147][144]annual interest rate";i:i=i/100
  2. 20 input"amt. to be deposited";pv
  3. 30 print"compounding periods per year:"
  4. 40 input"1, 2, 4, 12, 365";n
  5. 50 t=pv*(1+i/n)^n
  6. 60 fv=int(t*100)/100
  7. 70 print"future value = $";fv
  8.