Loops/Nested: Difference between revisions
Content added Content deleted
(Loops/Nested en Yabasic) |
mNo edit summary |
||
Line 548: | Line 548: | ||
next j |
next j |
||
next i |
next i |
||
# for i = lbound(a, 1) to ubound(a, 1) #arraydim, arraysize |
|||
# for j = lbound(a, 2) to ubound(a, 2) |
|||
for i = 0 to 19 |
for i = 0 to 19 |
||
Line 4,170: | Line 4,167: | ||
Nest(Array); |
Nest(Array); |
||
]</lang> |
]</lang> |
||
=={{header|Yabasic}}== |
|||
<lang Yabasic>dim a(20, 20) |
|||
for i = 1 to 20 |
|||
for j = 1 to 20 |
|||
a(i, j) = int(ran(20)) + 1 |
|||
next j |
|||
next i |
|||
// for i = lbound(a, 1) to ubound(a, 1) //arraydim, arraysize |
|||
// for j = lbound(a, 2) to ubound(a, 2) |
|||
for i = 1 to 20 |
|||
for j = 1 to 20 |
|||
print a(i, j) |
|||
if a(i, j) = 20 then end : endif |
|||
next j |
|||
next i |
|||
end</lang> |
|||
=={{header|zkl}}== |
=={{header|zkl}}== |