How to show K is compact?

Let K be a subset of R^n such that every continuous function from K to R (the reals) is bounded. Show that K is compact.

Thank you.
2 answers 2