EasyManuals Logo

Texas Instruments TI-89 Titanium User Manual

Texas Instruments TI-89 Titanium
977 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #600 background imageLoading...
Page #600 background image
Programming 597
While...EndWhile Loops
A
While...EndWhile loop repeats a block of commands as long as a specified condition is
true. The syntax of the
While command is:
While condition
When While is executed, the condition is evaluated. If condition is true, the loop is
executed; otherwise, program control jumps to the command following
EndWhile.
Note: The While command does not automatically change the condition. You must
include commands that allow the program to exit the loop.
At the end of the loop (
EndWhile), program control jumps back to the While command,
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
While command.
(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).
x | 5
x < 5
:While x<5
: --------
: --------
:EndWhile
:--------

Table of Contents

Other manuals for Texas Instruments TI-89 Titanium

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-89 Titanium and is the answer not in the manual?

Texas Instruments TI-89 Titanium Specifications

General IconGeneral
Display TypeLCD
Display Resolution160 x 100 pixels
CPUMotorola 68000
CPU Speed16 MHz
RAM256 KB
Flash ROM2.7 MB
Programming LanguageTI-BASIC, Assembly
Power Source4 AAA batteries
ConnectivityI/O port
Dimensions7.5 x 3.5 x 1 inches

Related product manuals