Please note that all for loops begin with the keyword for
After the keyword for you must address three separate statements within parentheses:
- An initialization statement
- A Boolean test expression
- An increment/decrement statement.
Compare this to what you have written, maybe this might help.