EasyManua.ls Logo

Radio Shack TRS-80

Radio Shack TRS-80
236 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...
Chapter
15
It Went
That-A-Way
Enter this program:
10
INPUT "TYPE A NUMBER BETWEEN 1
AND
5";N
20 IF N
=
1
GOTO
110
30
IF
N
-
2 GOTO 130
40 IF N
=
3 GOTO
150
50 IF N
=
4
GOTO 170
60 IF N
=
5 GOTO
190
70
PRINT
"
THE NUMBER YDU TYPED WAS
NOT
BETWEEN
1 AND 5
!
"
99
END
110
PRINT
"N
=
1
"
120
END
130
PRINT
"N
=
2
"
140
END
150
PRINT
"N
=3
"
160
END
1 70
PRINT
"N
=4
"
180
END
190 PRINT
"
N
=5
"
DUMMY
I
m
I
|
S3
I
m
I
1
Notice
any
thing
funny
about
line
70? It
takes up
twalines on. the
Display!
That's because it
contains
more
than
64 characters
(including line
number and
blank spaces)
.
This
is
perfectly all
right, as you
may already have
discovered
in your own pro-
gramming
efforts. In fact,
a program line can contain
up
to
7
2 charac tere ( in duding line number
and
.',;;;
spaces),
fo
enter
pr LIST such a long: tine takes
uptwb Display lines; but it's
still just
one
program
Line!
77

Other manuals for Radio Shack TRS-80

Related product manuals