Loops
Loops are used to repeat something up to a specific number of term or condition.
or
A loop is part of a program that repeats to a specific number of term or condition
or
A loop is a control structure that causes a statement or group of statements to repeat.
In “C or C++ ” we have four types of loops.
- For loops
- While loops
- Do while loops
- Nested loops