Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
22
Task/Loops-Nested/FreeBASIC/loops-nested.basic
Normal file
22
Task/Loops-Nested/FreeBASIC/loops-nested.basic
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
' FB 1.05.0 Win64
|
||||
|
||||
Randomize
|
||||
Dim a(1 To 20, 1 To 20) As Integer
|
||||
For i As Integer = 1 To 20
|
||||
For j As Integer = 1 To 20
|
||||
a(i, j) = Int(Rnd * 20) + 1
|
||||
Next j
|
||||
Next i
|
||||
|
||||
For i As Integer = 1 To 20
|
||||
For j As Integer = 1 To 20
|
||||
Print Using "##"; a(i, j);
|
||||
Print " ";
|
||||
If a(i, j) = 20 Then Exit For, For '' Exits both for loops
|
||||
Next j
|
||||
Print
|
||||
Next i
|
||||
|
||||
Print
|
||||
Print "Press any key to quit"
|
||||
Sleep
|
||||
Loading…
Add table
Add a link
Reference in a new issue