Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
20
Task/Identity-matrix/ERRE/identity-matrix.erre
Normal file
20
Task/Identity-matrix/ERRE/identity-matrix.erre
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
PROGRAM IDENTITY
|
||||
|
||||
!$DYNAMIC
|
||||
DIM A[0,0]
|
||||
|
||||
BEGIN
|
||||
PRINT(CHR$(12);) ! CLS
|
||||
INPUT("Matrix size",N%)
|
||||
!$DIM A[N%,N%]
|
||||
FOR I%=1 TO N% DO
|
||||
A[I%,I%]=1
|
||||
END FOR
|
||||
! print matrix
|
||||
FOR I%=1 TO N% DO
|
||||
FOR J%=1 TO N% DO
|
||||
WRITE("###";A[I%,J%];)
|
||||
END FOR
|
||||
PRINT
|
||||
END FOR
|
||||
END PROGRAM
|
||||
Loading…
Add table
Add a link
Reference in a new issue