A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
10
Task/Loops-Nested/Icon/loops-nested-1.icon
Normal file
10
Task/Loops-Nested/Icon/loops-nested-1.icon
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
procedure main()
|
||||
|
||||
every !(!(L := list(10)) := list(10)) := ?20 # setup a 2d array of random numbers up to 20
|
||||
|
||||
every i := 1 to *L do # using nested loops
|
||||
every j := 1 to *L[i] do
|
||||
if L[i,j] = 20 then
|
||||
break break write("L[",i,",",j,"]=20")
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue