Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In computer
science a for loop is a programming language statement which allows code
to be repeatedly executed. A for loop is classified as an iteration
statement. Unlike many other kinds of loops, such as the while loop, the
for loop is often distinguished by an explicit loop counter or loop
variable. This allows the body of the for loop to know about the
sequencing of each iteration. For loops are also typically used when the
number of iterations is known before entering the loop. For loops are
the shorthand way to make loops when the number of iterations is known,
as a for loop can be written as a while loop.