RosettaCodeData/Task/Array-length/OxygenBasic/array-length.basic

10 lines
201 B
Text
Raw Permalink Normal View History

2026-04-30 12:34:36 -04:00
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