EasyManuals Logo

Casio FX-9750G Manual

Casio FX-9750G
49 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
Page #29 background imageLoading...
Page #29 background image
341
Example: Lbl 1:? A _
If A > 0 And A < 10 _
Then ”GOOD”_
Else Goto 1_
IfEnd
The above program displays the message “GOOD” whenever a value that is greater
than zero and less than 10 is input. Any other value prompts for input again.
For~To~Next
Function: This command repeats everything between the For-statement and the
Next-statement. The starting value is assigned to the control variable with the first
execution, and the value of the control variable is incremented by one with each
execution. Execution continues until the value of the control variable exceeds the
ending value.
Syntax:
Parameters:
control variable name: A to Z
starting value: value or expression that produces a value (i.e. sin
x, A, etc.)
ending value: value or expression that produces a value (i.e. sin x, A, etc.)
Description:
1. When the starting value of the control variable is greater than the ending value,
execution continues from the statement following Next, without executing the
statements between For and Next.
2. A For-statement must always have a corresponding Next-statement, and the Next-
statement must always come after its corresponding For-statement.
3. The Next-statement defines the end of the loop created by For~Next, and so it
must always be included. Failure to do so results in an error (Go ERROR).
Example: For 1 A To 10_
A × 3 B_
B ^
Next
For~To~Step~Next
Function: This command repeats everything between the For-statement and the
Next-statement. The starting value is assigned to the control variable with the first
execution, and the value of the control variable is changed according to the step
value with each execution. Execution continues until the value of the control variable
exceeds the ending value.
_
For
<starting value> <control variable name>
To
<ending value>
:
^
_
<statement>
: Next
^
Command Reference 19
-
11

Other manuals for Casio FX-9750G

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Casio FX-9750G and is the answer not in the manual?

Casio FX-9750G Specifications

General IconGeneral
Display TypeLCD
DisplayMonochrome
GraphingYes
Power Supply4 x AAA batteries
ProgrammingYes

Related product manuals