Let $f$ be a continuous function in the interval $[0,\infty]$. $\lim_{x\to\infty} f(x) = L.$ How would I prove that $f$ attains at least its minimum or maximum. I can use the definition of the limit to show that $f$ is bounded at $[N,\infty]$ by $ L+1$ and $L-1$ for example. And to use second Weierstrass theorem for a continuous funcion in a closed set and to conclude that it is bounded in $[0,N]$. Also it gets its minimum and maximum in that set. So, it is bounded in $[0,\infty]$. But I have a problem showing that it attains at least its maximum or minimum is $[0,\infty]$.
Thanks!