Loops/Nested: Difference between revisions

Content added Content deleted
(FutureBasic solution added)
Line 1,676: Line 1,676:
19 1 15 14 10 20
19 1 15 14 10 20
</pre>
</pre>

=={{header|FutureBasic}}==
<syntaxhighlight lang="futurebasic">
long a(9,9), i, j
BOOL done = NO

for i = 0 to 9
for j = 0 to 9
a(i,j) = rnd(20)
next
next

for i = 0 to 9
for j = 0 to 9
print a(i,j)
if ( a(i,j) == 20 ) then done = YES : break
next
if ( done ) then break
next

HandleEvents
</syntaxhighlight>


=={{header|Gambas}}==
=={{header|Gambas}}==