for
Executes a statement repeatedly until the condition becomes false
Arguments
- Initial expression. Before any other element of the for statement, initial expression is executed only once. Control then passes to condition expression.
- Condition expression. Before execution of each iteration of statement, including the first iteration. Statement is executed only if condition expression evaluates to true.
- Loop expression. At the end of each iteration of statement. After loop expression is executed, condition expression is evaluated.
Output
Void
Examples