Line Numbers - Sanyo MBC-550 Series User Manual

Table of Contents

Advertisement

LINE NUMBERS
A line is the minimum unit of a program consisting of a
line number, a group of statements (descriptions of
instructions), and a RETURN Key (to terminate a line).
The general format of a line is as follows:
<line number><statement>{: statement>}
Example
>10 A=3:B=100:C=A+B:PRINT C
>RUN
103
A line number is a five-digit positive integer in the
range from 0 to 65535.
(Two bytes are allocated for a
line number in memory,)
The leading zeros are ignored.
No spaces can be included in the numeric parameter to
show a line number.
Examples
>00100 A = 3 (Same as 100,leading zeros ignored)
>110
A$ = "THREE" (Erroneous spaces)
>120 PRINT A, A$
>130 END
>RUN
Syntax error in 1
In Sanyo Basic
the carriage return is keyed in by use
of the keyboards <CR> key(corresponds to RETURN key),
The <CR> key is used to terminate a logical line, The
keying-in of data during an operation is terminated by
use of the RETURN key.
3-10

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents