to ex3 :n print :n ex3 :n+1 end |
Run the command: ex3 0 and stop the program with the STOP button.
Modify the program to dispay the numbers with an interval of 2.
We now want to display all integers greater than 100 which are divisable by 5. We just have to modify the program:
to ex3 :n print :n ex3 :n+5 end |
and then run: ex3 100
to ex3 :n if :n=100 [stop] print :n ex3 :n+1 end |
Then run the command ex3 0
Modify the program to display integers between 55 and 350 which are divisable by 11.