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

thank you
Last edited on
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
can you help with writing the loop? i really dont understand how @intelgralfx
1
2
3
4
for( int i = 0; i < months; i++ ) {
    // calculate interest
    // add interest to balance
}
Topic archived. No new replies allowed.