For
The easiest form of a loop is the for statement. This one has a syntax that is similar to an if statement, but with more options:
Lets for example see how to execute the same code ten-times using a for
loop:
Note:
i = i + 1
can be writteni++
.
Last updated