This command will define a program loop that will loop a finite number of times.
FOR Variable=Start-Value TO End-Value STEP Step-Value
rt-Value TO End-Value STEP Step-Value
Enter the appropriate value here.
This command does not return a value.
The FOR command requires a variable and two values to begin the loop. The variable stores the first value, and is incremented each loop until it reaches the second value. The size of the increment is determined by the STEP value. The NEXT command is placed to mark the end of the loop. As the variable increments during the loop, you can use its value in many ways. Optionally, you can count in descending order by specifying a high first number, a low second number and a negative step value.
FOR T=1 TO 10 PRINT T NEXT T WAIT KEY