Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

TI-Basic 84 Programming/Loops

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

For For, PRGM:CTL:4 is command used to perform a specific block of code a set number of times. Syntax: For For(variable,starting number,stopping number,increment) //code //code End Variable is some numeric variable (Ex: X). Starting number is the variable will be set as in the beginning. Stopping number is the final number that the variable will be. Increment is the amount variable will go up or down after each run-through the loop; increment has a default of 1 and can be left off. Ex: For First Example TEMP For(X,0,3,1) Disp X End 0 1 2 3 Second Example TEMPA For(X,3,0,-1) Disp X End 3 2 1 0 While While, PGRM:CTL:5 is a command used to have a loop run as long as a specific condition is met. Syntax: While While condition //code //code End 3, A>B), or an expression (5+2X), which resolves to be either true (non-zero) or false (zero). Ex: While TEMP 3 Disp X X+1->X End 0 1 2 3 Test Conditions and Logical Operators Picture Variables