EasyManua.ls Logo

Apple IIe - Page 51

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...
Applesoft
BASIC
Programming
51
100
LET
A=
5.0
200
LET
B =
7.0
300
LET
A=
A+
B
the
variable A
is
initially
assigned a value
of
5.0 and Bis assigned a
value
of
7.0.
In
line
300,
the
variable A
is
assigned a
new
value
equal
to
the
sum
of
variables A and
B,
which
is
12.
0.
The previous
value
of
A
is
erased.
BASIC
Variable
Names
Applesoft
BASIC allows any
group
of
up
to
238
characters
to
be
used
as
a variable name--as
long
as
the
first character
of
the
group
is
a capital
letter
of
the
alphabet, and
as
long
as
the
variable name does
not
duplicate
a reserved
word
(see
Appen-
dices A
&
B).
Examples
of
reserved words are:
LfT
~
GOTO,
IF
, READ,
DATA
The
following
are exa.mples
of
valid
Applesoft
BASIC
variable
names:
.;
i
'
A
'\
B23456
DOT
A2
JOHN
N4N
B%
N
While
the
following
are
invalid variable names:
2BB7
END
1A
FOR
PRINT COS
All
of
the
preceding
examples
of
va
l
id
variable names should be
used
to
represent
numeric
data. Variable names can
also
be used
to
represent string data. These are
known
as
string variables.
String variable names consi
st
of
a valid varia
bl
e name
follow
ed
by
the
dollar
sign
($)
.
Th
e
following
are examples
of
valid
s
tring
variable names.

Other manuals for Apple IIe

Related product manuals