Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Loops-Nested/SPL/loops-nested.spl
Normal file
15
Task/Loops-Nested/SPL/loops-nested.spl
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
'fill array
|
||||
mx,my = 30
|
||||
> y, 1..my
|
||||
> x, 1..mx
|
||||
a[x,y] = #.rnd(20)+1
|
||||
<
|
||||
<
|
||||
'scan array
|
||||
> y, 1..my
|
||||
> x, 1..mx
|
||||
#.output("x=",x,", y=",y, ", a=",a[x,y])
|
||||
<< a[x,y] = 20
|
||||
<
|
||||
<< x!>mx
|
||||
<
|
||||
Loading…
Add table
Add a link
Reference in a new issue