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)
Содержание Voyage 200
Страница 36: ...Getting Started 36 D B D B Press Result ...
Страница 45: ...Getting Started 45 3 0 D B D D B D Press Result ...
Страница 46: ...Getting Started 46 D 2 0 0 2 D B Scroll down to October and press Press Result ...
Страница 60: ...Getting Started 60 B D Press Result ...
Страница 139: ...Previews 139 8 Complete the operation Press 2 d Steps and keystrokes Display 5 f 2 ...
Страница 181: ...Operating the Calculator 181 From the Keyboard From the Keyboard From the Keyboard From the Keyboard ...
Страница 453: ...Differential Equation Graphing 453 ...
Страница 468: ...Tables 468 ...
Страница 515: ...Split Screens 515 Note Both Top Bottom and Left Right splits use the same methods to select an application ...
Страница 777: ...Activities 777 ...