-
for
'for' runs the program the specified number of times.
The program can repeat the simple calculation.
Here's the same programe with 'while'
Two arguments
The first argument is 'starting value'.
The second argument is ’one larger than the end value’.Three arguments
The third argument sets 'the amount of increase or decrease in the value'.You can also set it in the direction of decreasing the number.