Loops & Iteration

Loops & Iteration

  • Loops offer a quick and easy way to do something repeatedly

  • Loops must terminate or they will run forever; these are referred to as “infinite loops”

  • Some loops use conditions to determine when it should start and stop

  • There are many different kinds of loops, but they all essentially do the same thing: they repeat an action some number of times (and it’s actually possible that number could be zero)