EasyManua.ls Logo

Radio Shack TRS-80 PC-3

Radio Shack TRS-80 PC-3
289 pages
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...
"HELLO"
"GOODBYE"
"RADIO
SHACK
PC-3"
The
following are
not
valid
string
constants:
"COMPUTER
"ISN"T"
Variables
No
ending
quote
Quote
can't
be used
within
a string
In
addition
to
constants,
whose
values
do
not
change
during
a
program,
BASIC has variables,
whose
values can
change.
Variables
are
names
used
to
designate
locations
where
information
is
stored.
These variables are like
the
letters
used
in
algebraic
equations.
Just
as
there
are
numeric
and
string
constants,
there
are
numeric
and
string variables.
Simple Numeric Variables
You have
already
used
simple
numeric
variables
when
working
with
the
PC-3
as
a
calculator
in
Chapter
3.
Simple
numeric
variables
are used
to
store
a single
number
and
are
designated
by a single
letter
(A-Z):
A 5
C
12.345
Simple
numeric
variables
may
take
the
same range
of
values as
numeric
constants.
Simple String Variables
String
variables are used
to
hold
strings
(a
collection
of
characters).
They
are
named
by a single
letter
followed
by a
dollar
sign:
45

Table of Contents

Related product manuals