A long time.
Here is the start on a program that calculates how long it will take:
The value of the bank account, dollars
keeps
building up until the goal has been reached or exceeded.
This how a result-controlled loop works.
Note that it is built out of the usual while
statement
and boolean expression.
It is how these are used that makes it a result-controlled loop.
Fill in the blanks to complete the program.