the maximum value program as a function
simple c program using the maximum value function