Casio FX-795P Owner's Manual page 85

Hide thumbs Also See for FX-795P:
Table of Contents

Advertisement

156
CHAPTER 7
Command Reference
RETURN
Function:
Provides a return from the subroutine to the main program.
Explanation:
Returns to a statement located just after the statement which called the sub-
routine.
* Branched location
{ # program area No.
Function:
Branches to a subroutine according to a branch condition.
Parameter:
:
Branching condition:
Numeric expression.
Values below the decimal point are discarded.
Line No.:
1 to 9999.
Program. area No.:
Oto 9.
Explanation:
ON
B
GOSUB
1000,
2000,
3000-:---
ast
Baz
B=3
7-2
Program Commands
TO
Example:
10
INPUT
A
20
ON
A GOSUB.
100,200,300
38
GOTO
18
106
PRINT
"SUB
100"
:RETURN
200
PRINT
"SUB
200" RETURN
300
PRINT
"SUB
300"
RETURN
DATA
Constant
Constant
Function:
Stores data.
Parameter:
Explanation:
1) Used to write data that is read by a READ statement.
2) Plural data can be written by punctuation with ",".
DATA
ABC,
DEF,
*GHI, JKL',------
Ist
2nd
3rd
DATA'A, ,B
DATA A,*",B
DATA ,
DATA
*",*"
—>—
Null string
DATA
DATA
6) Even if a command is added to a DATA statement with a colon (:), it will'be
regarded as data and will not be executed.
DATA
12,34,56:
INPUT
A
(regarded as data)
157

Advertisement

Table of Contents
loading

Table of Contents