September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 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