Jump to content

C++ Language/ProgramFlow/Loops

From Wikibooks, open books for an open world

A "loop" is a programming construct that repeats a body of statements over and over again, testing some condition each time. Eventually, the result of testing that condition will determine that repetition should stop.

  1. Basic Loops
  2. Looping over a Collection