Max and Min of Function on Closed Real Interval

Theorem
Let $f$ be a real function which is continuous on the closed interval $\closedint a b$.

Then $f$ reaches a maximum and a minimum on $\closedint a b$.