Starting Point
List the program. The first number in the FOR line is the starting point
for the count, and the last number is the stopping point. Even negative
numbers can be the starting point for the count. Try these variations
for line 10:
10 FOR JKL=1 TO 5
R U N
10 FOR JKL=0 TO 5
R U N
10 FOR JKL=3 TO 5
R U N
10 FOR JKL=-10 TO 5
R U N
STEP: Counting Incrementally
List the program, delete the PRINT statement in line 20 and the
comma in line 15, and run the program. The computer counts and
prints the numbers very quickly. Use the STEP command to make the
computer count in increments. Try the program below:
10 FOR JKL=0 TO 500 STEP 5
R U N
10 FOR JKL=0 TO 500 STEP 2
R U N
10 FOR JKL=0 TO 500 STEP 100
R U N
10 FOR JKL=0 TO 500 STEP 7
R U N
The computer will obligingly count by any sequence you specify.
Counting Backward
The computer can count backward if you use the STEP -1 command
and the proper sequence of numbers (from larger to smaller) for
starting and stopping the count. For example:
10 FOR JKL=500 TO 0 STEP -1
RUN
10 FOR JKL=10 TO 0 STEP -1
RUN
10 FOR JKL = -1 TO -19 STEP -1
RUN
59
Содержание 65XE
Страница 1: ...ATARI 65XE PERSONAL COMPUTER OWNER S MANUAL TM...
Страница 3: ...ATARI 65XE PERSONAL COMPUTER TM...
Страница 6: ...Part 1 GettingStarted 1...
Страница 9: ...4...
Страница 23: ...18...
Страница 25: ...20...
Страница 32: ...Part 2 Programming withATARI BASIC 27...
Страница 33: ...28...
Страница 59: ...54...
Страница 69: ...64...
Страница 82: ...Part3 Appendices 77...
Страница 83: ...78...
Страница 97: ...92...
Страница 105: ...100...
Страница 125: ...120...
Страница 126: ...121 Index...
Страница 127: ...122...
Страница 134: ...ATARI 1987 Atari Corp All Rights Reserved Printed in Taiwan C072018 001 REV B K l 2 1987...
Страница 135: ......