C++ → Basics → Input in C++ → Conditions → Loops
Loops are used to repeat a section of your program for a certain number of times or the repetition continuous until a certain condition remains true. When the condition becomes false, the loop stops and the program follows the following statements of the program.
- There are three types of loops in C++
- The for loop
- The while loop, and
- The do-while loop
NEXT: The for loop