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

Chapter 14. Iteration and Repetition - Pg. 189

Iteration and Repetition 14 Looping logic consists of iteration and repetition. Loops are control structures used to count (iterate) through a data structure. With loops, we can write code once and use it many times to repeat a set of actions. Loops allow us to accommodate for variations in data that we simply cannot plan for ahead of