In this example, a is increased by 1 until it is equal to 2.
For Statement
The body of a for statement is executed zero or more times until an optional condition becomes false. You can use optional expressions within the for statement to initialize and change values during the for statement's execution.