Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
23
Task/Loops-Nested/Ring/loops-nested.ring
Normal file
23
Task/Loops-Nested/Ring/loops-nested.ring
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
size = 5
|
||||
array = newlist(size,size)
|
||||
for row = 1 to size
|
||||
for col = 1 to size
|
||||
array[row][col] = random(19) + 1
|
||||
next
|
||||
next
|
||||
|
||||
for row = 1 to size
|
||||
for col = 1 to size
|
||||
see "row " + row + " col " + col + "value : " + array[row][col] + nl
|
||||
if array[row][col] = 20 exit for row ok
|
||||
next
|
||||
next
|
||||
|
||||
func newlist x, y
|
||||
if isstring(x) x=0+x ok
|
||||
if isstring(y) y=0+y ok
|
||||
aList = list(x)
|
||||
for t in aList
|
||||
t = list(y)
|
||||
next
|
||||
return aList
|
||||
Loading…
Add table
Add a link
Reference in a new issue