RosettaCodeData/Task/Array-length/OxygenBasic/array-length.basic
2026-04-30 12:34:36 -04:00

9 lines
201 B
Text

uses console
'indexbase 1 by default
dim fruit(2) as string = {"apple", "orange"}
dim length as integer = ubound(fruit) - lbound(fruit) + 1
print "The length of the fruit array is ", length
waitkey