Defining a program
Defining a program is similar to defining a multiple-line function. The
Prgm...EndPrgm
statements.
As an example, create a program named
arguments. Based on the comparison, the program should display the
text "x greater than y" or "x not greater than y" (showing the values of x
and y in the text).
1.
On the Calculator entry line, type
yet.
Enter
2.
On the
Functions & Programs
Calculator inserts the template.
3.
On the
Functions & Programs
If...Then...Else...EndIf
Calculator inserts the template.
4.
Type the remaining parts of the function, using the arrow keys to
move the cursor from line to line.
Using Calculator
template serves as a container for the program
.
x,y
that compares two
g(
)
Define prog1(x,y)=
menu, select
Prgm...EndPrgm
menu, select
Control
. Do not press
.
, and then select
63