Programs can automatically repeat subroutines and subprograms based on these looping statements. They can repeat a number of times, count a set of items and repeat for each item, or repeat as long as an attribute is true or false.
For variable = startvalue to endvalue Commands Next <br />for (initial variable value, final value, increment) { commands; } <br />while (condition) { commands; } <br />do { commands; } while (condition);