Home Segments Index Top Previous Next

206: Practice

Write an iterative program that accepts three positive integers: p, a principal amount, i, an interest rate, and n, a number of years, and computes the interest accumulated, assuming that the interest is compounded annually.