EasyManua.ls Logo

Radio Shack TRS-80 - Page 66

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...
Egad,
Igor
we've
created a monster!
Will
it work'.' RUN
find
find out.
Worked
just the
same, didn't it?
Now
don't
get
all carried away, but
this
is
one of many
cases where you can put a
number
of
statements
on the
same
line,
separating them
with the COLON
{:).
Be
careful, not
the
semi-colon.
The Computer reads
them from
left to right, as
though each
were a separate line
number.
Don't
try this trick
with
IF-THEN statements
since there are
some
special
considerations
but
with virtually
everything
else we've learned so
far, including
FOR-NEXT loops,
it
works
fine, saves
space, shortens
programs and has a
lot going for it.
EXERCISE
12-2:
Rework
the answer to
Exercise
11-3
to
include
the
Hourly
rate of pay
in
the printout.
Use
the
TAB
function to have the chart
display all 5
columns side by
side.
EXERCISE
12-3:
(Optional)
Rework
the special
problem
11-6
answer using
the TAB func-
tion so the
printout includes the
internal
resistance in a
fifth column.
Learned in
Chapter
12
Print
Moififlers
TAB
MKeeSaneous
Trailing
semicolon
Multiple
statement lines
64

Other manuals for Radio Shack TRS-80

Related product manuals