Radio Shack CTR-118 User Manual Page 31

  • Download
  • Add to my manuals
  • Print
  • Page
    / 196
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 30
3-1
3 / Input-Output
The statements described in this chapter let you
send data from Keyboard to Computer, Computer
to Display, and back and forth between Computer
and the Cassette interface. These will primarily
be used inside programs to input data and output
results and messages.
Statements covered in this chapter:
PRINT INPUT
@ (PRINT modifier) DATA
TAB (PRINT modifier) READ
USING (PRINT formatter) RESTORE
PRINT # (Output to Cassette)
INPUT # (Input to Cassette)
PRINT
item list
Prints an item or a list of items on the Display. The items may be either
string constants (messages enclosed in quotes), string variables, numeric
constants (numbers), variables, or expressions involving all of the preceding
items. The items to be PRINTed may be separated by commas or semi-colons.
If commas are used, the cursor automatically advances to the next print zone
before printing the next item. If semi-colons are used, no space is inserted
between the items printed on the Display. In cases where no ambiguity would
result, all punctuation can be omitted.
Examples:
--------------------------------------------------
50 X=5
100 PRINT 25; "IS EQUAL TO"; X
2
RUN
25 IS EQUAL TO 25
--------------------------------------------------
10 A$="STRING"
20 PRINT A$;A$,A$;" ";A$
RUN
STRINGSTRING STRING STRING
Page view 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 ... 195 196

Comments to this Manuals

No comments