Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
17
Task/Loops-Nested/PureBasic/loops-nested.basic
Normal file
17
Task/Loops-Nested/PureBasic/loops-nested.basic
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
; Creating and filling array
|
||||
Dim Value(10, 5)
|
||||
For a = 0 To 10
|
||||
For b = 0 To 5
|
||||
Value(a, b) = Random(19) + 1
|
||||
Next
|
||||
Next
|
||||
; iterating trough array
|
||||
For a = 0 To 10
|
||||
For b = 0 To 5
|
||||
Debug Value(a, b)
|
||||
If Value(a, b) = 20
|
||||
; 2 indicates, that there are two nested lopps to break out
|
||||
Break 2
|
||||
EndIf
|
||||
Next
|
||||
Next
|
||||
Loading…
Add table
Add a link
Reference in a new issue