Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The next category of control-of-flow commands are ITERATION STATEMENTS (also called LOOPS) that cause a block of code to be executed more than once. There are three categories of iteration statements: those that execute a statement block zero or more times based on a Boolean expression, those that execute a statement block a specific number of times, and those that execute a statement block for each element in a collection of elements. (We’ll discuss the last category in Chapter 11 when we look at .NET Framework collection types.)