Texas Instruments TI-89 사용자 설명서

다운로드
페이지 1008
Programming
 583
Note:
 A list of output commands is available. 
Getting Values into a Program
Getting Values into a Program
Getting Values into a Program
Getting Values into a Program
To input values into a program, you can:
Require the users to store a value (with 
§) to the necessary variables before 
running the program. The program can then refer to these variables.
Note:
 A list of input commands is available. 
Displaying a calculation result 
does not store that result. If you 
need to refer to a result later, 
store it to a variable.
:cos(
p
/4)
!
maximum
:Disp maximum
Enter the values directly into 
the program itself.
:Disp 12
ù
6
:cos(
p
/4)
!
maximum
Include input commands that 
prompt the users to enter the 
necessary values when they 
run the program.
:Input "Enter a value",i
:Request "Enter an 
integer",n
Require the users to pass 
one or more values to the 
program when they run it.
prog1(3,5)