So, I've started studying Calculus less than a month ago but now I've been stuck for two days trying to prove the extreme value theorem and it's really stressing me out. I've searched on other Calculus books but none seems to provide a proof for it, and trying to look for a proof on the internet has only gotten me to study yet other theorems which seem hardly within the scope of Calculus.
So far I've managed to prove that if $f$ is continuous in $[a,b]$, then it must also be bounded in that interval. I also know how to prove that $f$ attains its least upper bound in $[a,b]$, provided that it exists. Basically, all I want to prove now is that if $f$ is continuous and bounded in $[a,b]$, then it must also have a least upper bound. But however obvious it may seem to me, I can't seem to come up with a proof. Is there a way to prove it?
Thank you very much for any help.