Sharp EL-9900 Calculator User Manual


 
215
Chapter 13: Programming Features
For
variable, initial value, end value [, increment]
commands or multiple statements
Next
The increment value can be omitted. The default value is 1.
•For and Next statements must be placed at the beginning of the
line.
If the comparisons
variable
>
end value
(
positive
) or
variable
<
end value
(
negative
) are satisfied, the program will end the loop
and go to the line indicated by the Next command.
Up to 5 For loops can be nested, though if combined with other
types of loops, the maximum nested loop number may vary due
to the memory capacity.
It is highly recommended that Label and Goto statements are
not used in For loop structures.
While
conditional statements
commands or multiple statements
WEnd
While and WEnd statements must be placed at the beginning of
the line.
Multiple While loops can be nested to within the memory
capacity.
Conditional statements are evaluated before entering the While
clause.
It is highly recommended that Label and Goto statements are
not used in While loop structures.
* Up to 8 while loops can be nested, though if combined with
other types of loops, the maximum nested loop number may
vary due to the memory capacity.
07 For
08 Next
09 While
10 WEnd