In accounting, compound interest is calculated as: C(n)=p(1+r)n Where C(n) is the value in the account at the end of year n, n | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

In accounting, compound interest is calculated as: C(n)=p(1+r)n Where C(n) is the value in the account at the end of year n, n

plzzz help me this is my assigmnet and i dont know how to solve it & write this programe using loop and simply that i can understand easily because i am bigner

17th May 2018, 5:59 AM
زوار اعجاز
زوار اعجاز - avatar
3 Answers
+ 20
In C++ : declare variables float p, r, n, ci; take values from user for p, r, n... using cin... ci=p*pow((1+r/100), n); then print the value of ci... using cout... don't forget to include <cmath> زوار اعجاز something like this 👇 https://code.sololearn.com/cF4kTkAop1CD/?ref=app
17th May 2018, 6:55 AM
🌛DT🌜
🌛DT🌜 - avatar
0
what is its source code
17th May 2018, 4:55 PM
زوار اعجاز
زوار اعجاز - avatar
0
this is not as like as i want
17th May 2018, 5:14 PM
زوار اعجاز
زوار اعجاز - avatar