Prints HELLO MARY
Prints HELLO MARY
Strings
Strings may
be
printed by assigning the string
to
a string variable or enclos-
ing the string
within
quotation
marks. For example.
A$="HELLO
MARY"
PRINT
A$
PRINT "HELLO
MARY"
Further. if
Vou
print
a string
within
quotation
marks. vou may leave off the final set
of
quotation
marks if the PRINT statement
is
the last statement on a line. For ex-
ample.
PRINT "HELLO MARY
PRINT Formats
Prints HELLO MARY
First data item. The first data item
to
be
printed in a program
is
printed at the cur-
rent cursor position. The PRINT format character
(comma or semicolonl
follow-
ing the first data item specifies the format
in
which
the next data item
is
to
be
printed. The next data item may
be
in
the same PRINT statement or in a sepa-
rate PRINT statement.
New
Une.
When
no PRINT format character (comma or semicolon) follows a data
item. a
RETURN
is
forced
following
printing of the data item.
Tabbed. A comma
following
a data item causes the next data item
to
be
printed
at the next tab column. Tabs are at locations
1.21.31.
and
41
of a line.
(A
com-
ma
may precede the first item
to
tab before printing.)
Continuous. A semicolon
following
a data item causes the next item to
be
printed
at the next available location on the line. For numeric data. this
is
the second
position to the right of the previous data item to allow room for a
"skip"
character between numbers. For string data. items are printed continuously
with
no spaces or skips
in
between. The semicolon
is
optional to specify con-
tinuous line printing of character data.
PRINT
may
be
executed in immediate or program mode.
Examples:
10 PRINT A
20 ?A.B.C$
?"MOOPOO";MM$
PRINT
Cl$;C2$;
PRINT
A+B
144