EasyManua.ls Logo

Radio Shack TRS-80 - Page 64

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...
Hint:
Since form
#1 uses
automatic zone
formatting
and
is not
adjustable,
the other forms
have to
be
keyed to it.
Whether
you
follow TAB(##)
with a
semicolon
or
comma makes no
difference.
In either
case,
the
Computer
will start
printing ##
spaces to the
right
of
the
left
margin.
However, it
is
important to
remember that
whenever
numbers
or
number
variables
are
printed out,
the
Computer inserts
one
space to
the left of
the number to
allow
for
the
or +
sign. Type
and
RUN
the following:
10 A
=
3
20 B
=
5
30 C
=
A
+
B
40
PRINT TAB(
10)
;
"A" ;TAB<20>j
"B"
;TAB(30)
;
M
C"
50
PRINT
TAB( 10)
iA)TAB(20)
t
B
;TAB(30)
;C
It
should
appear:
A
B
Note
that
the
numbers are
indented one
space beyond
the TAB(#).
Keep it in mind
when
lining up
(or
indenting)
headings
and answers.
Change
line
20
to read
20 B
=
-5
. . .
and
RUN.
See
why
the
indenting
is necessary?
The Long
Lines
Division
Have you
ever
wondered
what
would
happen
if you
wanted to
PRINT a
great
number of
headings or
answers
on
the
same line
-
but
didn't
have
enough
room on the
program line
to get
in all the
TAB
statements?
You
have?
Really?
You're
in
luck
because it's easy.
Type
and RUN
the
following
program:
62

Other manuals for Radio Shack TRS-80

Related product manuals