Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 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