Execute this program. The output should appear
as:
MY
NAME
IS
LEE
Ok
•
The printing appears all in one line because the semicolon instructs the Computer
to
continue printing immediately after the first line is printed. The space after
"IS"
in
the first line
was
added so that the words
"IS"
and
"LEE"
would not run together.
If
you wanted
to
space the name further apart, you could add more spaces after
"IS"
or you could add spaces before
"LEE"
in line 20.
Another way
to
space the printing is
to
use a comma instead
of
a semicolon. Retype
line
10
so that
it
reads:
10
PRINT
"MY
NAME
IS
",
Now list the program and it should read:
LIST
10
PRINT
"MY
NAME
IS
"
20
PRINT "LEE"
Ok
Run this program. The output should appear
as:
NAME
IS
L.EE
This time
"IS"
and
"LEE"
are spaced several columns apart. The comma
in
the first
line means "begin printing in the next field" (more on fields later).
9