Sample Programs - Sharp EL-9900 Operation Manual

Graphing calculator
Hide thumbs Also See for EL-9900:
Table of Contents

Advertisement

Chapter 13: Programming Features
When an infinite
loop occurs

9. Sample programs

MATFILL
Ask and set the
dimension of
mat A
Generate integer
from 0 to 9 using
int and random
function and set it
to each element
Print mat A for
confirmation
220
Execution can be interrupted by pressing O.
Use this command if the program enters an infinite loop. Press
; or ' to display the program source with the cursor on
the line where interrupted.
* Refer to Appendix "Error Codes and Error Messages" on page
235.
* It is highly recommended that goto-Label statements are not
used in If, While and For loop structures.
* Multiple statements cannot be used in a command line such as
Else, EndIf, Next, While and WEnd. It is recommended not to
use multiple statements.
×
* Fill the matrix M
Input "ROW:", M
Input "COLUMN:", N
{M, N} ⇒ dim(mat A)
1 ⇒ I
While I ≤ M
1 ⇒ J
While J ≤ N
int (random x10) ⇒ mat A(I, J)
1 ⇒ J
+
J
WEnd
1 ⇒ I
+
I
WEnd
Print mat A
Wait
End
N with random numbers from 0 to 9.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents