Texas Instruments TI-73 用户手册

下载
页码 364
Chapter 12: Programming     
239
7312ENG.DOC   CH 12 Programming, English   Julie Hewlett   Revised: 07/29/98 12:17 PM   Printed: 05/19/99 9:02
AM   Page 239 of 32
PROGRAM:VOLUME
:Input "DIAMETER=",D
:Input "HEIGHT=",H
:prgmCALCAREA
:A¦HÜV
:Disp "VOLUME=",V
:Pause
PROGRAM:CALCAREA
:D/2ÜR
:p¦R
2
ÜA
:Return
 
Return   
Return   8
 
 F
 F
Return
 quits the subroutine and returns execution to the calling
program, even if it is encountered within nested loops. Any
loops are ended. An implied 
Return
 exists at the end of any
program that is called as a subroutine. Within the main
program, 
Return
 stops execution and returns to the Home
screen.
:Return
See the program examples (on the previous page), 
CALCAREA
and 
VOLUME
, explaining the programming command, 
prgm
. The
subroutine, 
CALCAREA
, ends with a 
Return
 command.
 
Stop   
Stop   8
 
 G
 G
Stop
 ends program execution and returns to the Home screen.
Stop
 is optional at the end of a program.
:Stop
Write a program named 
STOP 
that inputs T. If T‚20, then the
program displays T‚20. If T<20, then the program stops
execution. (Note: The example screens show two program
executions so that you can see what happens with both types
of input.)
³
Press 
b
after inputs.