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.




fun greatest a
  let l len a
  let max a[0]
  for let i 1; i < l; i++
    if max < a[i]
      let max a[i]
    endif
  endfor
  return max
endfun