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.




2 5 3 12 9 9 56 2 ARR
 
LEN VAR l .
0 VAR i .
FOR l
    GET i SWAP
    i 1 + VAR i .
ENDFOR .
STKLEN 1 - VAR st .
FOR st
    MAX
ENDFOR PRINT