Task

Create a function that returns the maximum value in a provided set of values,

where the number of values may not be known until run-time.




l$ = "1,1234,62,234,12,34,6"
dim n$(1)
n$ = explode(l$, ",")
m$ = "" : m = 0
 
for i = 1 to n$[?]-1
	t$ = n$[i]
	if t$ > m$ then m$ = t$
	if int(t$) > m then m = int(t$)
next i
 
print "Alphabetic order: "; m$; ", numeric order: "; m