The for loop is frequently used, when a loop is to run for a fixed number of time.
for (initialization; test-condition; increment/decrement)
block of statements;
Nested For Loop
When a statement block of a for-loop lies completely inside the block of a new for-loop then, it is called Nested for loop.
Break and Continue Statement.
Break Statement is used to stop any loop or switch Statement at any time.
This statement is used to skip the repetition of a loop.