Radio Shack TRS-80 User Manual page 67

Micro computer system
Hide thumbs Also See for TRS-80:
Table of Contents

Advertisement

Chapter
13
Grandson
of
FOR-NEXT
The
FOR-NEXT
loop
didn't
go
away
for long.
It
returns
more
powerful than
ever.
Enter
this
program:
10
FOR
A =
1
TO
3
20
PRINT
" A
LOOP
ti
30
FOR
B
=
1
TO
;
?
40
PRINT
ii
it
ii
*
B
LOOP"
50
NEXT
B
60 NEXT
A
.
.
.
and
RUN.
The
result
is:
A
LOOP
B
LOOP
B
LOOP
A
LOOP
B
LOOP
B
LOOP
A
LOOP
B
LOOP
B
LOOP
Fetfe^bMyva^kwabkak
spaces
In iine
W
befbrepR
I
H
T;
three in
Hoe 3?
before
FOR
;
'
torn
in
4(t.
bejfojcePR
J
;
N
T* aiMUhiee
in
5$
before
:NEXT...
:
05

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents