Casio fx-50F User Manual page 67

Casio calculator user's guide fx-50f
Hide thumbs Also See for fx-50F:
Table of Contents

Advertisement

→ (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
: (Separator Code)
Syntax
{statement} : {statement} : ... : {statement}
Function
Separates statements. Does not stop program execution.
? → A : A
Example
(Output Command)
Syntax
{statement}
Function
Pauses program execution and displays the result of the current execution.
The
command.
? → A : A
Example
A Unconditional Jump Command
Goto ~ Lbl
Syntax
Goto
Function
Execution of Goto
? → A : Lbl 1 : ? → B : A × B ÷ 2
Example
Important!
A Syntax ERROR occurs if there is no corresponding Lbl
n
Goto
is located.
A Conditional Jump Commands and Conditional Expressions
1 {expression} {relational operator} {expression}
Syntax
{statement2} : ....
2 {expression}
Function
Conditional branching command used in combination with relational
operators (=, ≠, >, > , <, < ).
Syntax 1 : {statement1} is executed if the condition to the left of the
command is true, and then {statement2} and everything after it is executed
in sequence. {statement1} is skipped if the condition to the left of the
command is false, and then {statement2} and everything after it is executed.
Syntax 2 : A non-zero evaluation result of the condition to the left of the
command is interpreted as "true", so {statement1} is executed, followed by
{statement2} and everything after it in succession. A zero evaluation result
of the condition to the left of the
{statement1} is skipped, and {statement2} and everything after it is executed.
2
2
: Ans
{statement}
symbol is turned on while program execution is paused by this
2
2
Ans
n
n
: .... : Lbl
or Lbl
n
jumps to corresponding Lbl
{statement1} : {statement2} : ....
n
n
n
: .... : Goto
(
= integer from 0 to 9)
Goto 1
n
command is interpreted as "false", so
E-66
n
.
in the same program where
{statement1} :

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-50f plus

Table of Contents