20 lines
336 B
Text
20 lines
336 B
Text
|
|
dim ar(10,10)
|
||
|
|
for i = 1 to 10
|
||
|
|
for j = 1 to 10
|
||
|
|
ar(i, j) = int(rnd(1) * 20) + 1
|
||
|
|
next
|
||
|
|
next
|
||
|
|
|
||
|
|
flag=0
|
||
|
|
for x = 1 to 10
|
||
|
|
for y = 1 to 10
|
||
|
|
print ar(x,y)
|
||
|
|
if ar(x,y) = 20 then
|
||
|
|
flag=1
|
||
|
|
exit for
|
||
|
|
end if
|
||
|
|
next
|
||
|
|
if flag then exit for
|
||
|
|
next
|
||
|
|
print "Completed row ";x;" and column ";y
|