EasyManua.ls Logo

Apple IIe - Page 94

Apple IIe
320 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
94
Apple
lie
Users
Handbook
name
is
the
name
of
the
function.
Like variable names,
only
the
first
two
characters are significant. The variable can be any real
numeric
variable
name. The
expression
can be a
numeric
constant
or
a
numeric
equation.
Example
10
Pl=
ATN(1) *4:REM
Pl
20
DEF
FNAR(X)
=Pl
*
XA2
30
FOR RAD = 1
TO
3
40
PRINT RAD, FNAR(RAD)
50
NEXT
RAD
60
END
]RUN
[Ret]
1
2
3
3.14159266
12.5663706
28.2743339
In
line
10
,
Pl
is
calculated
so
it
can be used in
the
function
definition.
In
line
20,
the
function
for
the
area
of
a
circle
is
defined.
Line
40
then
uses
the
function
by passing
the
value
of
the
radius
to
the
function.
The value
of
the
area
of
the
circle
is
then
returned
and
printed
by
the
PRINT statement.
Applesoft
DEL
Integer
DEL
deletes
the
lines given
in
the
argument.
Configuration
DEL
a
[,b]*
a and
bare
integers
greater
than
or
equal
to
0.
In
Applesoft,
b
must
be
greater
than
a.
In
Integer
BASIC,
if
bis
less
than
a
only
* The [,b]
is
only
optional
in
Integer
BASIC.

Other manuals for Apple IIe

Related product manuals