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.




define m(a[], n) {
    auto m, i
 
    m = a[0]
    for (i = 1; i < n; i++) {
        if (a[i] > m) m = a[i]
    }
    return(m)
}