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.




def max(list)
	if len(list) = 0
		return null
	end
 
	largest = list[0]
	for val in list
		if val > largest
			largest = val
		end
	end
	return largest
end