BEGINNER!! STILL need help with the loop at the end!

Oct 28, 2016 at 1:39am
thank you
Last edited on Nov 4, 2016 at 12:29am
Oct 28, 2016 at 1:43am
cout << "Enter the annual interest rate: ";
You forgot to cin >> annual_int;

I'd recommend that you change the type from int to double, as you will most likely be floating point values.

As for the loop, you want to keep adding to invest_balance every month, until you've reached months.
Last edited on Oct 28, 2016 at 1:48am
Oct 28, 2016 at 4:43am
can you help with writing the loop? i really dont understand how @intelgralfx
Oct 28, 2016 at 5:15am
1
2
3
4
for( int i = 0; i < months; i++ ) {
    // calculate interest
    // add interest to balance
}
Topic archived. No new replies allowed.