previous
|
start
|
next
Calculating the Growth of an Investment
When has the bank account reached a particular balance?
while (balance < targetBalance)
{
year++;
double interest = balance * rate / 100;
balance = balance + interest;
}
previous
|
start
|
next