Sometimes we need to write a program where a block of code needs to be repeated. Rather than write a code over and over, we use one of the Repetition Structures available in programming languages.
The simplest of these structures is the For Loop.
This loop is used when a set of instructions is to be repeated a predetermined number of times.