Add info to the article (#19192)

It is also known as an 'entry-controlled loop' since the condition is checked before the next iteration. Another example of an 'entry-controlled loop' is a while loop.
This commit is contained in:
varchasva-tiwari
2018-10-16 09:24:35 +05:30
committed by Quincy Larson
parent 51beff16ef
commit ea983e5c13

View File

@ -5,6 +5,7 @@ title: For Loop
# For Loop
The `for` loop executes a block of code until a specified condition is false. Use `while` loops when the number of iterations are variable, otherwise use `for` loops. A common use of `for` loops are array iterations.
It is also known as an 'entry-controlled loop' since the condition is checked before the next iteration. Another example of an 'entry-controlled loop' is a while loop.
## Syntax of For Loop