Relational Operators - Casio fx-5800P User Manual

Casio calculator user's guide fx-5800p
Hide thumbs Also See for fx-5800P:
Table of Contents

Advertisement

? → A : A
Example
(Output Command)
Syntax
<statement> <statement>
Function
Pauses program execution and displays the result of the current execution.
The
command.
? → A : A
Example
Note
Program execution paused by the
the
command.
? (Input Prompt)
? → <variable>
Syntax 1
"<character string>"? → <variable>
Function 1
Assigns a value to a variable. An input prompt "?" or "<character string>?"
appears on the display when program execution reaches this command.
? → A
Example 1
Syntax 2
?<variable>
"<character string>"?<variable>
Function 2
Assigns a value to a variable. The input prompt "<variable>?" or "<character
string>?" appears on the display when program execution reaches this
command.
Unlike the ? → <variable> syntax, this syntax displays the current value of
the variable along with prompt. If
in response to the prompt, program execution will proceed using the current
value of the variable.
Example 2
? A
→ (Variable Assignment)
<expression> → <variable>
Syntax
Function
Assigns the value obtained by the element on the left to the variable on the
right.
A + 5 → A
Example
A Relational Operators
=, ≠ , >, , <,
Syntax
<expression> <relational operator> <expression>
Function
These commands evaluate the expressions on either side and return a value
of true (1) or false (0). These commands are used in combination with the
branching command S , and when structuring the <conditional expression>
of If, While, and Do statements.
See the entries for S (page 115), If statement (page 116), While statement
Example
(page 117) and Do statement (page 117).
2
2
: Ans
symbol is turned on while program execution is paused by this
2
2
Ans
key, which will resume execution from the command following the
command can be resumed by pressing
is pressed without inputting anything
E-114
x )
(

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents