Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
12
Task/Loops-Nested/BBC-BASIC/loops-nested.basic
Normal file
12
Task/Loops-Nested/BBC-BASIC/loops-nested.basic
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
DIM array(10,10)
|
||||
FOR row% = 0 TO 10
|
||||
FOR col% = 0 TO 10
|
||||
array(row%,col%) = RND(20) + 1
|
||||
NEXT
|
||||
NEXT row%
|
||||
FOR row% = 0 TO 10
|
||||
FOR col% = 0 TO 10
|
||||
PRINT "row "; row%, "col ";col%, "value "; array(row%,col%)
|
||||
IF array(row%,col%) = 20 EXIT FOR row%
|
||||
NEXT
|
||||
NEXT row%
|
||||
Loading…
Add table
Add a link
Reference in a new issue