Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
12
Task/Array-length/PureBasic/array-length-1.basic
Normal file
12
Task/Array-length/PureBasic/array-length-1.basic
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
EnableExplicit
|
||||
Define Dim fruit$(1); defines array with 2 elements at indices 0 and 1
|
||||
fruit$(0) = "apple"
|
||||
fruit$(1) = "orange"
|
||||
Define length = ArraySize(fruit$()) + 1; including the element at index 0
|
||||
If OpenConsole()
|
||||
PrintN("The length of the fruit array is " + length)
|
||||
PrintN("")
|
||||
PrintN("Press any key to close the console")
|
||||
Repeat: Delay(10) : Until Inkey() <> ""
|
||||
CloseConsole()
|
||||
EndIf
|
||||
Loading…
Add table
Add a link
Reference in a new issue