EasyManuals Logo

Texas Instruments TI-Nspire Software Guide

Texas Instruments TI-Nspire
380 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 #351 background imageLoading...
Page #351 background image
Programming 339
While condition
When While is executed, the condition is evaluated. If condition is true, the
loop is executed; otherwise, control jumps to the command following
EndWhile.
Note: The
While command does not automatically change the condition.
You must include commands that allow the function or program to exit
the loop.
At the end of the loop (EndWhile), 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 function or
program, or you can 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 function or program cannot exit the loop
(called an infinite loop).
For example:
À Initially sets x.
Á Displays 0, 1, 2, 3, and 4.
 Increments x.
à Displays 5. When x increments to 5, the loop is not executed.
x | 5
x < 5
While x<5
--------
--------
EndWhile
--------
0&x À
While x<5
Disp x
Á
x+1&x Â
EndWhile
Disp x
Ã

Table of Contents

Other manuals for Texas Instruments TI-Nspire

Questions and Answers:

Question and Answer IconNeed help?

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

Texas Instruments TI-Nspire Specifications

General IconGeneral
TypeDisplay
Form factorPocket
Product colorBlue, White
Display resolution320 x 240 pixels
Display size (HxV) (imperial)0 \
Compatible operating systemsWindows Vista/XP Mac OS X 10.4/10.5
Battery typeAAA
Number of batteries supported4
Weight and Dimensions IconWeight and Dimensions
Dimensions (WxDxH)100 x 198.3 x 28.7 mm

Related product manuals