for-loop (Glossary Entry)

The for-loop is one of the most commonly used looping structures.

It executes a block of code while a condition is found to be true (non zero in C), and provides a convenient way to initialize and update loop counters.

A simple example is given below:

The output will be:

TO BE CONTINUED