A loop allows a program to repeat a group of statements any number of times, or until some loop condition occurs. Commonly known as iterative or repetition statements:

Counting Loops
Counting loops are used when it can be determined before loop execution how many loop repetitions will be needed. The followings are examples of counting loops:
- While Loop
- For Loop
Conditional Loops
Conditional loops are used when a loop should be repeated until a desired condition is met. Examples are below:
- While Loop
- Do While Loop
- For Loop