EasyManua.ls Logo

Casio PB-100 - 5-6 Program Commands

Casio PB-100
67 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...
&6 Program Commands
5-6-1 Input Command
I n p u t s t a t e m e n t
An input command is used to input the data during program calculation.
An input statement is used to input data into a variable using the keys during program
execution and program execution stops after displaying a " ?
Format: INPUT ("character string",] variable [, "character string", variable]
(Items enclosed in brackets may be omitted.)
The "character string" may be omitted. However, when it is written, since the
characters enclosed in quotation marks will be displayed preceding the question mark,
this can be used as a message during input.
The variables following the INPUT statement can be numerical variables (A, B, etc.),
character variables (X$, Y$, etc.) and the exclusive character variable ($). These can be
written consecu t ively u s ing a
Example:
INPUT A
INPUT 'DATA='.A
DATA=?
As a result of an INPUT statement, a " ? " will be displayed and an input await
condition will occur. At this time, if data is input and the US Key is pressed, program
execution will proceed to the next process.
Furthermore, when in an input await condition, even if the GS Key is pressed, the
condition will not be released. Therefore, when you want to stop the program along the
way. press @ (^.
Data which can be input using an INPUT statement includes numerical values or the
results (answers) of numerical expression (for numerical variables) and character
strings (for character variables).
In the case of INPUT A
Numerical value 123li0 A=123
Result of a numerical expression 14025SI A=350
In the case of INPUT B$
Character string •••
A B C a a B $ = A B C
'789aa-> B$=789
Furthermore, other numerical variables can also be used as input for numerical
variables.
In the case of INPUT A (make X = 987654)
Variable XISl * A=X
=987654
-44-

Related product manuals