A function f is said to be increasing on a set S if the inequality f(t) is less than or equal to f(x) holds whenever t and x belong to S and t is less than or equal to x. Prove that every increasing function on the interval [0,1] must have both a max and a min.