Casio PB-100 Instruction Manual page 47

Table of Contents

Advertisement

The output control function following the PRINT statement is a CSR function, which
designates the location where the following data is to be displayed.
For the numerical expression, a variable or calculation formula is written. In the case of
a variable, the contents of the variable will be displayed. In the case of a calculation
formula, the calculation result will be displayed.
PRINT A (make A = 12345)
P R I N T
7 8 9
PRINT A*2 (make A = 147)
PRINT B$ (make B$= "PB-100")
1 2 3 4 5
P B - 1 0 0
In the case of a character expression, the characters enclosed in quotation marks will be
displayed.
Example:
P R I N T
' A B C
P R I N T
' X Y Z *
+
M 2 3 '
X Y Z 1 2 3
The numerical expressions or character expressions may be written consecutively by
using a " ;" or " ,". However, the number of characters which can be written on one
line must be 62 or less, including the line number. The number of characters in the
character string enclosed in quotation marks must be 30 or less.
The difference between the " ;" and the " , " is that with the " ;", the numerical
expression or character expression will be displayed following the previous expression
and with the " the display will go off once and then the next display will be made.
When a " ; " is not written after the data, "STOP" will be displayed after the data Is
displayed, and program execution will stop. Therefore, when you want to display the
following data or continue program execution, press the dS Key.
C S R
f u n c t i o n
The CSR function is an output control function and designates the location where the
data is to be displayed.
F o r m a t : P R I N T C S R
e x p r e s s i o n '
numerical expression
character expression
Either one of the items enclosed in j } can be used.
Items enclosed in ( ) can be omitted.
The value of the numerical expression is 0 to 11 by disregarding decimal
portion.
- 4 6 -

Advertisement

Table of Contents
loading

Table of Contents