EasyManua.ls Logo

Radio Shack TRS-80

Radio Shack TRS-80
30 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...
P. 16
READ and DATA
Up to now we've looked at two ways to enter numbers into a
program. One is by assigning a value to a letter (A = 5).
Another is with the INPUT statement. Another method is with
DATA.
Try this :
10 DATA 1,2,3,4,5
20 READ A,B,C,D,E
30 PRINT A ;B ;C ; D ;E
RUN this program.
NOTE: DATA statements can have values assigned with commas
separating them; same with READ statements.
DATA lines are always read from left to right by READ statements.
It does not matter where DATA statements come in the sequence of
a program. Move line 10 to line 25. Move it to line 10000. Works
the same in any case.
TAB Function
The TAB function is just like the Tab on a typewriter. It tells
the Computer to start printing at a specified number of spaces
in from the left. Try this:
10 PRINT TAB(12),"@@@@"
20 PRINT TAB(32),"####
RUN it.
@@@@

Other manuals for Radio Shack TRS-80

Related product manuals