EasyManua.ls Logo

Casio FX-795P - REM; INPUT {Message statement} variable name

Casio FX-795P
133 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
CHAPTER.7
Command
Reference
Comment
R
E
M
Character
string
nn
Function:
Statement
that
expresses
a
comment.
.
Explanation:
:
_
.
1)
Written
in
a
program.
Content
after
REM
in
one
line
is
treated
as
commen
statement
and
is
therefore
not
executed.
:A=$9
1@
REM
TEST
T
Not
executed.
2)
When
a
command
to
be
executed
is
written
on
the
same
line,
write
a
multi-
statement
sign
(:)}
before
the
REM
statement.
Example:
1@
REM
AREAcrrerrtrs
Determines
program
name.
2@
INPUT
“R=",R
3Q@
S=7*Rt2:REM
CALCULATION
Adds
comment
s
to
the
line.
4@
PRINT
5@
END
144
7-2.
Program
Commands
INPUT
("gzectene)
wen
e
[,
[“Message
statement”,
]
Character
string
Variable
name]
*
Function:
Assigns
input
from
the
keyboard
to
a
variable.
Parameter:
Message:
Character
string.
Variable
name:
Numeric
variable
name
or
character
variable
name.
Explanation:
1)
Input
from
the
keyboard
is
assigned
to
a
variable
when
the
&@
key
is
pressed.
2)
If
there
is
a
message,
“?”
will
be
displayed
after
the
message
and
the
com-
puter
will
be
in
key
input
wait
status.
3)
If
the
message
is
omitted,
“?”
only
will
be
displayed.
4)
In
the
key
input
wait
status
with
the
INPUT
statement,
the
message
and
“?”
will
be
cleared
with
the
first
key
input.
5)
Error
(Error
2)
will
occur
if
character
string
data
is
input
to
a
numeric
varia-
ble.
Since
“?”
will
be
displayed
again
and
a
numeric
value
input
will
be
requested
when
the
@3
key
is
pressed,
make
a
new
input.
(If
the
@
key
is
pressed,
program
execution
will
be
terminated.)
6)
A
numeric
expression
can
be
used
as
the
input
to
a
numeric
variable
and
the
value
of
the
numeric
expression
will
be
assigned
to
the
numeric
variable.
In
this
case,
even
one
alphabetical
letter
will
be
regarded
as
a
numeric
expression
(variable).
7)
If
the
J
key
only
is
pressed
without
inputting
the
numeric
value
or
numeric
expression,
the
value
in
the
numeric
variable
will
not
change.
8)
If
the
&
key
only
is
pressed
without
inputting
a
character
expression
when
inputting
to
a
character
variable,
null
will
be
assigned
to
the.
character
variable.
145

Related product manuals