Template:Computer Programming/Control/7

From Wikibooks, open books for an open world
Jump to: navigation, search


Loops allow you to have a set of statements repeated over and over again.

Endless Loop[edit]

The endless loop is a loop which never ends and the statements inside are repeated forever. Never is meant as a relative term here — if the computer is switched off then even endless loops will end very abruptly.