Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
19
Task/Loops-Nested/Liberty-BASIC/loops-nested.basic
Normal file
19
Task/Loops-Nested/Liberty-BASIC/loops-nested.basic
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue