Question: write a prog to evaluate the following investment equation v=p(1+r)n and print values of p,r & n:? p:1000,2000,....10000\nr:0.10,0.11,0.12,....,0.20\nn:1,2,3,....10\n(Hint : p is the principal amount & v is the value of maney at the end of n year this guestion can be recursively written as \nv=p(1+r)\np=v \n\n& the prog must in C++

Answer: for p=1 to 10\nfor r=10 to 20\nfor n=1 to 10\nv=(p*1000)*(1+(r/100))*n\nprint v,p,r,n\nnext next next
This question from the Yahoo Q&A forum is categorized in the topic: Society & Culture