user inputs numbers and types done when finished, program output max and min values