
Programming
596
When
For
is executed, the variable value is compared to the end value. If variable does
not exceed end, the loop is executed; otherwise, program control jumps to the command
following
EndFor
.
Note:
The
For
command automatically increments the counter variable so that the
program can exit the loop after a certain number of repetitions.
At the end of the loop (
EndFor
), program control jumps back to the
For
command, where
variable is incremented and compared to
end
.
For example:
Ê
Displays 0, 1, 2, 3, 4, and 5.
Ë
Displays 6. When
variable
increments to 6, the loop is not executed.
Note:
You can declare the counter variable as local if it does not need to be saved after
the program stops.
Ê
Ë
:For i,0,5,1
: Disp I
:EndFor
:Disp i
i > 5
i
{
5
:For i,0,5,1
: --------
: --------
:EndFor
:--------
Содержание Titanium TI-89
Страница 9: ...Getting Started 6 TI 89 Titanium keys Ë Ì Í Ê ...
Страница 34: ...Getting Started 31 2 or D 2 B u s i n e s s D B D B Press Result ...
Страница 43: ...Getting Started 40 3 0 D B D D B D Press Result ...
Страница 44: ...Getting Started 41 D 2 0 0 2 D B Scroll down to October and press Press Result ...
Страница 58: ...Getting Started 55 Example Set split screen mode to TOP BOTTOM Press Result 3 B D ...
Страница 70: ...Getting Started 67 ...
Страница 175: ...Operating the Calculator 172 From the Keyboard ...
Страница 456: ...Tables 453 ...
Страница 503: ...Split Screens 500 Note Both Top Bottom and Left Right splits use the same methods to select an application ...
Страница 527: ...Data Matrix Editor 524 ...
Страница 704: ...Connectivity 701 A TI 89 Titanium and a Voyage 200 linked together I O Port I O Port I O unit to unit cable ...