I was going through the topic of $Function$, its boundedness, continuity etc. I got a problem.
Does there exist a function defined on the closed interval $[a,b]$ which is....
2. takes its maximum and minimum values;
3. takes all its values between the maximum and minimum values;
Then can we conclude that then this function is continuous at some points or subintervals on $[a,b]$.