Radio Shack TRS-80 User Manual page 65

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

Advertisement

10 A =
1
20
B
=
2
30
C=3
40
D=4
50 E
=
5
60
F = 6
70
G =
7
80
H=8
90 1=9
100
J=10
200
PRINT
"A"
;
TAB
(50)
;
"B"
;
TAB
C
10)
;
m
C"
;
TAB
(
15)
;
"D"
;
210
PRINT
TAB
C
20
)
;
" E "
;
TAB
(
2 5
)
;
"
F
"
j
TAB
(
30
)
j
"
G "
;
220
PRINT
TAB(
35
)
;
"h"
;
TAB
(
40
)
j
"
I
M
;TAB( 45)
;
" J
"
300
PRINT A;TAB(5
)
;B;TAB(
10)
;C;TAB(
15)
;D;TAB(20>
;
310
PRINT
E
;TAB( 25
)
;
F;TAB(
30)
;
G;TAB(
35
)
;
H
;
TAB
(
40
)
;
320
PRINT
I
t
TAB( 45
)
;
J
It's
the
trailing
semicolon
(;)
that
does
the
trick.
It
makes
the
end
of
one
PRINT
line
con-
tinue
right
on
to the
next
PRINT
line
without
activating a carriage return.
The
combination
of
TAB
and
trailing
semicolon
allows
you
almost
infinite flexibility
in
formatting
the
output.
Multiple
Statement
Lines
As
our
parting
shot
in this
easy
lesson,
we're
going
to
have
a
sneak preview
of what's ahead.
Replace
lines
10 through
100
with
the following:
10
A=l
:B =
2!C
=
3rD
=
4!E
=
5:F
=
6:G
=
7:H
=
8:I=9:J=10
63

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents