for

'for' runs the program the specified number of times.

for1's photo

The program can repeat the simple calculation.

for2's photo

Here's the same programe with 'while'

for3's photo

Two arguments
The first argument is 'starting value'.
The second argument is ’one larger than the end value’.

for4's photo

Three arguments
The third argument sets 'the amount of increase or decrease in the value'.

for5's photo

You can also set it in the direction of decreasing the number.

for6's photo