Sharp EL6300 Operation Manual page 26

Table of Contents

Advertisement

CLO AD
Loads a program from a cassette tape to the calculator.
LPRINT expression or character string[,expression or
character string]
LPRINT expression or character string[;expression or
character string ... ]
Outputs the specified program (or part of a program) or data
to the printer.
LPRINT
"TOTAL" ;T
LLIST
Outputs the program to the printer.
LLIST I ENTER I
USING ["format]
Specifies a display format when numeric values and
characters are to be displayed.
20:USING
"###.
# #"
If nothing is specified in the brackets, the specified
format is canceled.
RUN [expression or character string]
Starts program
execution.
RUN IENTERI
If nothing is specified in the brackets, the first line
number is
assumed.
PRINT expression or character string[,expression or
character string]
PRINT expression or character string[;expression or
character string ... ]
Displays the specified contents on the LCD.
20: PRINT "COST:", A
previously set
password.
PASS "CONFID" I ENTER I
As the "character", a maximum of seven characters can be
used.
Command:
Purpose:
Example:
Purpose:
Command:
Command:
Purpose:
Example:
Example:
Remarks:
Command:
Purpose:
Command:
Purpose:
Example:
Remarks:
Purpose:
Example:
Command:
Example:
Remarks:
45
CHAPTER 9 INTRODUCTION TO BASIC PROGRAMMING
NEW
Erases the existing program.
NEW I ENTER I
PASS" character"
Gives a user-defined password (up to seven alphanumeric
characters) to a program so that the program can be used
only by those who know the password. Also cancels a
LEI numeric
variable=
expression
LEI character
variable=
character string
Assigns a numeric value to a variable.
20: LET A=B+3
INPUT variable[,variable ... ]
INPUT "character" ,variable[, "character", variable
]
INPUT "character"; variable[, "character"; variable
]
Stops program execution temporarily and allows numeric
values and characters using the
keys.
20: INPUT"COST:";A
IF condition THEN statement (IF condition statement)
Judges a given condition and changes the flow of program
execution
(i.e.,
the sequence in which the statements are
executed).
20: IF A>=B THEN 100
The condition can use the following.
=, >, >=,<,
<=,<>
GOTO expression or character string
Transfers program execution to the specified statement.
20:GOTO 100
200: RETURN
expression: line number
character string: line label name
Command:
Purpose:
Example:
:ommand:
Purpose:
Purpose:
=:xample:
:ommand:
=:xample:
::>urpose:
:ommand:
=:xample:
:=iemarks:
~ommand:
::>urpose:
~ommand:
=>urpose:
Example:
=iemarks:
Example:
20: GOSUB 100
CHAPTER 9 INTRODUCTION TO BASIC PROGRAMMING
4

Advertisement

Table of Contents
loading

Table of Contents