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.




 
maximum = A(lbound(A,1));
do i = lbound(A,1)+1 to hbound(A,1);
  if maximum < A(i) then maximum = A(i);
end;
 