Another looping control structure is the for loop. This is generally used when a program m er wants to loop for a certain num ber of iterations. The driving direction Drive straight down Destination Road for 5 m iles could be converted to a for loop that looks som ething like this:
For (5 iterations)
Drive straight for 1 mile;
For (5 iterations)
Drive straight for 1 mile;