Looping

Programs execute sequentially, or line-by-line.

A loop can execute a section of code many times, over and over again.

Looping

When your program reaches a loop statement, it stops sequential execution and "loops through" the statements within the loop.

When the loop finishes, the program picks up after the loop.


Prev -- Up -- Next