DEV Community

JEGADESHWARAN B
JEGADESHWARAN B

Posted on

for loop

Initial

The for loop is a looping statement.
It repeats execution for a fixed number of times.

Depth

It has initialization, condition, and increment/decrement.
It is an entry-controlled loop.

More Depth

Commonly used when the number of iterations is known.

Final

The for loop executes a block of code repeatedly with control over iterations.

Top comments (0)