Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Iteration Commands

The next category of control of flow commands is 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 a specific number of times, those that execute a statement block zero or more times based on a Boolean expression, 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.)

image


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


 Â