EasyManua.ls Logo

VTech Power Pad Precomputer Power Pad Plus

VTech Power Pad Precomputer Power Pad Plus
88 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
45
We could always rewrite the program like this:
10 N=1
20 PRINT “N IS”;N
30 N=N+1
40 IF N > 10 THEN END
50 GOTO 20
We can also count by 2’s. Let’s bring back the previous program and change line 10.
The entire program looks like this:
NEW
10 FOR N=1 TO 10 STEP 2 press ENTER
20 PRINT “N IS”;N press ENTER
30 NEXT N press ENTER
The STEP 2 part changes the meaning hidden in the NEXT N statement to be N = N
+ 2 or any other number that gets put in the STEP part.
We can even count backwards.
Try this:
NEW
10 FOR N=10 TO 1 STEP -1
20 PRINT N
30 NEXT N
40 PRINT “BLAST OFF”
RUN

Related product manuals