Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
11
Task/Loops-Nested/Commodore-BASIC/loops-nested.basic
Normal file
11
Task/Loops-Nested/Commodore-BASIC/loops-nested.basic
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
10 dim a$(20,20):print "initializing...":print
|
||||
20 for r=1 to 20:for c=1 to 20
|
||||
30 a$(r,c)=chr$(int(rnd(1)*20)+1)
|
||||
40 next c,r
|
||||
50 rem now search array
|
||||
60 for r=1 to 20:for c=1 to 20
|
||||
70 e=asc(a$(r,c))
|
||||
80 print "(";r;","c;") =";e
|
||||
90 if e=20 then print "found 20. stopping search.":end
|
||||
100 next c,r
|
||||
110 print "search complete. no 20 found.":end
|
||||
Loading…
Add table
Add a link
Reference in a new issue