Casio PB-100 Instruction Manual page 51

Table of Contents

Advertisement

Example:
To increase variable I in increments of 2 between 1 and 10.
F O R
I
- 1
T O
1 0
S T E P
2
N E X T
I
To reduce variable A in increments of 0.5 between 50 and 1.
F O R A = 5 0
T O
1
S T E P - 0 . 5
I
N E X T
A
To increase variable P in increments of 1 between Q and R.
F O R
P
= 0
T O
R
N E X T
P
* When increase is performed in increments of 1, "STEP" may be omitted.
* Nesting
Up to 4 FOR-NEXT loops can be stacked. This stacking is called "nesting".
- F O R
A
=
- F O R
B - -
- F O R
C = -
r F O R
i - N E X T D
I N E X T 0
N E X T
B
N E X T
A
This shows 4-stack nesting.
When nesting is performed in this manner, attention must be paid to the NEXT
statement and its variable which correspond to the FOR statement.
- 5 0 -

Advertisement

Table of Contents
loading

Table of Contents