hint or algorithm to solve this

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  /* 006.6.c
Write a program to evaluate the following investment equation
V = P(1 + r)^n   (here ^ means square)
and print the tables which would give the value of V for various combination of the
following values of P, r and n.
p = 1000, 2000, 3000, ... , 10000
r = 0.10, 0.11, 0.12, ..., 0.20
n = 1, 2, 3, ... 10
(Hint: P is the principle amount and V is the vlue of money at the end of n years.
This equatin can be recursively wirtten as 
V = P(1 + r)
P = V
That is, the value of the money at the end of the first year becomes the principle
amount for the next year and so on.)
*/

thankyou.
Topic archived. No new replies allowed.