For Loop in C++ Execute a sequence of statement multiple times until the certain condition is fulfilled.For loop is iteration statement. It is also called counter controlled loop. It is the most flexible loop. That is why, it is the most frequently used loop by the c++ programmers.
- · To execute a statement or number of statements for a specified number of time. For example, a user may display his name or email on screen for 5 times.
- · To use a sequence of values. For example , a user may display a set of natural numbers from 0 to 50.
- For loop
- While Loop
- Do-while Loop