Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Hash-from-two-arrays/Gambas/hash-from-two-arrays.gambas
Normal file
15
Task/Hash-from-two-arrays/Gambas/hash-from-two-arrays.gambas
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
Public Sub Main()
|
||||
Dim sValue As String[] = ["Zero", "One", "Two", "Three", "Four", "Five"]
|
||||
Dim sKey As String[] = [0, 1, 2, 3, 4, 5]
|
||||
Dim sCol As New Collection
|
||||
Dim siCount As Short
|
||||
|
||||
For siCount = 0 To sKey.max
|
||||
sCol.Add(sValue[siCount], sKey[siCount])
|
||||
Next
|
||||
|
||||
For siCount = 0 To sKey.max
|
||||
Print Str(sicount) & " = " & sCol[siCount]
|
||||
Next
|
||||
|
||||
End
|
||||
Loading…
Add table
Add a link
Reference in a new issue