Texas Instruments TI-89 Titanium User Manual page 599

Hide thumbs Also See for TI-89 Titanium:
Table of Contents

Advertisement

When
is executed, the variable value is compared to the end value. If variable does
For
not exceed end, the loop is executed; otherwise, program control jumps to the command
following
.
EndFor
i > 5
i
{
The
command automatically increments the counter variable so that the
Note:
For
program can exit the loop after a certain number of repetitions.
At the end of the loop (
variable is incremented and compared to
For example:
:For i,0,5,1
Ê
:
Disp I
:EndFor
Ë
:Disp i
Ê
Displays 0, 1, 2, 3, 4, and 5.
Ë
Displays 6. When variable increments to 6, the loop is not executed.
You can declare the counter variable as local if it does not need to be saved after
Note:
the program stops.
Programming
:For i,0,5,1
5
:
--------
:
--------
:EndFor
:--------
), program control jumps back to the
EndFor
.
end
command, where
For
596

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents