EasyManua.ls Logo

Radio Shack TRS-80 Model III - Page 107

Radio Shack TRS-80 Model III
274 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...
BASIC
Statements
A statement is a
complete instruction to
BASIC,
telling the
Computer
to
perform
specific operations.
For example:
GOT0 100
Tells the
Computer
to
perform the operations
of
(1)
locating
line 100 and
(2)
executing the
statement on
that line.
END
Tells the Computer to
perform the
operation of
ending
execution of the
program.
Many
statements
instruct the computer to
perform
operations
with
data.
For
example, in the
statement:
PRINT "SEPTEMBER
REPORT"
the data
is September REPORT.
The statement
instructs
the Computer to
print the
data inside
the quotes.
Expressions
An
expression
is actually a
general term for
data.
There are
four types
of
expressions:
1.
Numeric
expressions,
which are
composed
of
numeric
data.
Examples:
(1
+5.2)/
3
D
5*B
3.7682
ABS(X)
+ RND(O)
SIN(3 +
E)
2.
String expressions,
which are
composed
of
character data.
Examples:
A$
"STRING"
"STRING"
+ "DATA"
MO$
+ "DATA"
MID$(A$,2,5)
+
MID$("MAN",1,2)
M$
+ A$ + B$
97

Other manuals for Radio Shack TRS-80 Model III

Related product manuals