Loop types

Loops can be of different types. Code inside of a loop can be repeated a set number of times. It is known as for loop.

Loops can be executed until a specific condition is met. These loops are known as while loop repeat until loop. Different programming languages may have different naming for these loops.

In these loops it is needed to set the value of the exit loop variable, or such loops will become infinite loops.

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator