Vector Basic Interpreter Basic 80 Reference Manual - page 87
A question
mark
may
be
used
in place
of
the word
in a PRINT
statement.
Example
1:
10 X=S
20
X+S,
X-S,
X*(-S},
XJ\S
30
END
RUN
10
0
-2S
312S
Ok
In
this
example,
the
commas
in
the
statement
cause
each
value
to be printed
at the
beginninq
of the
next
zone.
Example
2:
LIST
10 INPUT X
20 PRINT
X
"SQUARED
IS"
XJ\2
"AND";
30 PRINT
X
"COBED
IS"
XJ\3
40 PRINT
SO GOTO
10
Ok
RUN
? 9
9
SQUARED
IS
81
AND
9
CUBED
IS
729
?
21
21
SQUARED
IS
441
AND
21
CUBED
IS
9261
In this
example,
the
semicolon
at
the
end
of
line
20
causes
both
statements
to be
printed
on the
same
line,
and
line
40
causes
a
blank
line
to be printed
before
the
next
prompt.
Example
3:
10
FOR
X
:II
1
TO
S
20 J=J+S
30 K=K+10
40 ?J;K;
SO
NEXT
X
Ok
RUN
S
10
10
20
1S
30
20
40
2S
SO
Ok
In this
example,
the
semicolons
in
the
statement
cause
each
value
to
be
printed
immediately
after
the
preceding
value.
(Don't
forget,
a
number
is always
followed
by
a space
and positive
numbers
are preceded
by
a
space.)
In
line
40, a question
mark
is used
instead
of
the word
PRINT.