Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Identity-matrix/Beads/identity-matrix.beads
Normal file
10
Task/Identity-matrix/Beads/identity-matrix.beads
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
beads 1 program 'Identity matrix'
|
||||
|
||||
var
|
||||
id : array^2 of num
|
||||
n = 5
|
||||
|
||||
calc main_init
|
||||
loop from:1 to:n index:i
|
||||
loop from:1 to:n index:j
|
||||
id[i,j] = 1 if i == j else 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue