Beginning Programming All-in-One Desk Reference For Dummies
Book image
Explore Book Buy On Amazon

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
<br />for (initial variable value, final value, increment) {
<br />while (condition) {
<br />do {
} while (condition);

About This Article

This article is from the book:

About the book author:

Wallace Wang is a bestselling author with more than 2.3 million For Dummies books in print. He wrote Beginning Programming For Dummies and moonlights as a stand-up comic.

This article can be found in the category: