Texas TI-86 Manuale Utente

Pagina di 431
218
Chapter 16: Programming
16PROG.DOC   TI-86, Chap 16, US English   Bob Fedorisko   Revised: 02/13/01 2:36 PM   Printed: 02/13/01 3:04 PM   Page 218 of 16
16PROG.DOC   TI-86, Chap 16, US English   Bob Fedorisko   Revised: 02/13/01 2:36 PM   Printed: 02/13/01 3:04 PM   Page 218 of 16
16PROG.DOC   TI-86, Chap 16, US English   Bob Fedorisko   Revised: 02/13/01 2:36 PM   Printed: 02/13/01 3:04 PM   Page 218 of 16
The PRGM CTL Menu     
8 ' programName b )
PAGE
$
PAGE
#
I
à
O
CTL
INSc
If
Then
Else
For
End
4
While
Repea
Menu
Lbl
Goto
4
IS>
DS<
Pause
Retur
Stop
4
DelVa
GrStl
LCust
To see examples that show how to use 
PRGM
 
CTL
 menu items in programs, refer to the A to
Z Reference.
If
 condition
If condition is false (evaluates to 0), the next program command is
skipped; if condition is true (evaluates to a nonzero value), the
program continues on to the next command
Then
Following 
If
, executes a group of commands if condition is true
Else
Following 
If
 and 
Then
, executes a group of commands if condition is false
For(
variable
,
begin
,
end
   
ã
,
step
ä
)
Starting at begin, repeats a group of commands by an optional real step
until variable > end; default step is 1
End
Identifies the end of a group of program commands; 
For(
While
,
Repeat
, and 
Else
 groups must end with 
End
Then
 groups without an
associated 
Else
 instruction also must end with 
End
While 
condition
Repeats a group of commands while condition is true; condition is
tested when the 
While
 instruction is encountered; typically, the
expression that defines condition is a relational test (Chapter 3)
Repeat
 condition
Repeats a group of commands until condition is true; condition is
If
While
, and 
Repeat
instructions can be nested.
For(
 loops can be nested.