While...endwhile Loops - Texas Instruments TITANIUM TI-89 User Manual

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

Advertisement

While...EndWhile Loops

While...EndWhile Loops
While...EndWhile Loops
While...EndWhile Loops
A
While...EndWhile
true. The syntax of the
While condition
When
is executed, the condition is evaluated. If condition is true, the loop is
While
executed; otherwise, program control jumps to the command following
x
5
|
x < 5
The
command does not automatically change the condition. You must
Note:
While
include commands that allow the program to exit the loop.
At the end of the loop (
where condition is re-evaluated.
To execute the loop the first time, the condition must initially be true.
Any variables referenced in the condition must be set before the
(You can build the values into the program or prompt the user to enter the values.)
The loop must contain commands that change the values in the condition, eventually
causing it to be false. Otherwise, the condition is always true and the program
cannot exit the loop (called an infinite loop).
Programming
loop repeats a block of commands as long as a specified condition is
command is:
While
:While x<5
:
--------
:
--------
:EndWhile
:--------
), program control jumps back to the
EndWhile
.
EndWhile
command,
While
command.
While
613

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-89 voyage 200Titanium ti-89

Table of Contents