Specifications
5-6-1
Input Command
• Input Statement
An
input
command
is
used
to
input
the data during program calculation.
An
input
statement
is
used
to
input
data
into
a variable using the keys during program
execution
or
program execution stops (after display shows a
"7
").
Format: INPUT ["character string".J variable [, "character
string",
variable]
(Items enclosed in brackets may
be
omitted.)
The "character
string"
may
be
omitted. However.
if
it
is
written.
the characters enclosed
in
quotation
marks
will
be
displayed preceeding the question mark. This
can
be
used
as
a
message
during input.
The variables
following
the INPUT statement
can
be
numerical variables (A,
B,
etc.),
character variables (X$,
Y$.
etc.).
or
the
exclusive character variable ($). These
can
be
written
consecutively using a "
,".
Example:
I
NPUT
A
INPUT
"DATA=",
A
After
an
INPUT statement a
"?
"
will
be
displayed and the
PC-4
enters
an
input
await
condition.
At
this time,
if
data
is
input
and the
III
Key
is
pressed, program execution
will
proceed
to
the
next
process.
The
input
await
condition
will
not
be
released
even
if
the
rD
Key
is
pressed.
Therefore,
when you want
to
stop a program in execution,
press
~~
.
* Data which
can
be
input
using
an
INPUT statement include numerical values
or
the
results (answers)
of
numerical expression
(for
numerical variables) and character
strings (for character variables).
In the
case
of
INPUT
A
Numerical value
......
123111
---i>
A=
1
23
Result
of
a numerical expression
......
14D25111
~
A=350
In the
case
of
INPUT B$
ABCIII-
B$=ABC
Character
string······
789111-
B$=789
Furthermore, other numerical variables
can
also
be
used
as
input
for
numerical
variables.
In the
case
of
INPUT
A (make X ;; 987654)
Variable .. ·..·
XIII
)
A=X
=987654
-44-