Creating a for loop template
Drag the loop tile from the bottom of the Alice development screen and drop it into the appropriate location in the edit pane.
You will be required to specify the number of times that the body of the loop is to be executed.
(You can replace this value with an expression or variable name later.)
The template shown in Figure 6 will appear in the edit pane.
Figure 6. Basic template for a for loop in Alice.