Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
20
Task/Identity-matrix/Run-BASIC/identity-matrix.basic
Normal file
20
Task/Identity-matrix/Run-BASIC/identity-matrix.basic
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
' formats array im() of size ims
|
||||
for ims = 4 to 6
|
||||
|
||||
print :print "--- Size: ";ims;" ---"
|
||||
Dim im(ims,ims)
|
||||
|
||||
For i = 1 To ims
|
||||
im(i,i) = 1
|
||||
next
|
||||
|
||||
For row = 1 To ims
|
||||
print "[";
|
||||
cma$ = ""
|
||||
For col = 1 To ims
|
||||
print cma$;im(row, col);
|
||||
cma$ = ", "
|
||||
next
|
||||
print "]"
|
||||
next
|
||||
next ims
|
||||
Loading…
Add table
Add a link
Reference in a new issue