p. 11
Add another line to your program:
15 PRINT
What is that going to add? Just an empty line. RUN it and you'll
see that the lines are separated; looks better now.
Let's add a REMark statement at the beginning. A REMark statement
is not part of the program, it is just like a note or reminder
to you.
5 REM ** THIS IS MY FIRST COMPUTER PROGRAM **
RUN the program and you'll see that line 5 had no effect. Now
pull a list (type LIST) and sure enough, line 5 is there.
Big- & Little Numbers
The TRS-80 uses scientific notation to handle very large and
very small numbers. For example, the number 5,000,000 becomes
5E+06; this means the number 5 followed by 6 zeros. The
number .000,005 becomes 5E-06; this means 6 decimal places
to the left of 5. Scientific notation is a very common method
for listing very large and very small numbers (they are much
easier to work with this w a y ) .
Sequence of Math Operators
Your TRS-80 uses the 4 fundamental math functions. You also can
use parentheses in your math formulas. The following rules apply
for ( )
and sequence of Math Operators:
1. All operations inside parentheses are performed first.
2. All operations buried deepest within ( ) are performed first.
IE. If you have operations nested inside ( ), which are nested