You can also make an additional text box to display the total interest after the loop is finished. It can be formatted the same way as values that are printed. In these labs, you prepared tables of information and displayed them as part of the forms. This requires use of loops in the code for the command buttons. Loops are used for doing the same thing multiple times.
Most programming languages support several forms of loops.
Until loops and For-Next loops. The Do-While loop checks a condition, much like the If construction. The For-Next loop increments a variable used as a counter and checks if it exceeds a specified value. In the next lab, you will use loops with a construct called arrays. In this lab, you continued to make use of expressions for calculations and the Format command to control the appearance of the output.