Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Loops-Nested/Frink/loops-nested.frink
Normal file
14
Task/Loops-Nested/Frink/loops-nested.frink
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
array = new array[[10,10], {|x,y| random[1,20]}]
|
||||
|
||||
println["array is:\n" + formatTable[array, "right"] + "\n"]
|
||||
|
||||
[rows,cols] = array.dimensions[]
|
||||
|
||||
ROW:
|
||||
for r = 0 to rows-1
|
||||
for c = 0 to cols-1
|
||||
{
|
||||
print[array@r@c + " " ]
|
||||
if array@r@c == 20
|
||||
break ROW
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue