Radio Shack TRS-80 User Manual page 49

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

Advertisement

§
HINT:
If
you
can't figure
it
out, try
moving
the
NEXT N
line
to
some
other
position.
Right
you
moved
line
20
to
line
40 and
the screen
reads:
HELP
MY
COMPUTER HAS GONE BERSERK!
NO
IT'S
UNDER CONTROL.
HELP
MY
COMPUTER HAS GONE BERSERK!
NO
IT.S
UNDER CONTROL
.
.
.
etc.
3
more
times.
How
would
you modify
the
program
so
line
10
is
printed
5
times,
then
line
30
is
printed 3
times?
Make
the changes
and
RUN.
The
new
program might
read:
8
FOR
N =
1
TO
5
10
PRINT
"HELP
MY
COMPUTER
HAS
GONE
BERSERK!"
20
NEXT
N
25
FOR
M
=
1
TO
3
30
PRINT
"NO
IT'S
UNDER CONTROL."
40
NEXT
M
i H
47

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents