A am revising for my exam and have come across a proof i'm struggling with as i struggle with prooofs involving compactness,

If E is a subset of Show that E is compact if and only if E is closed and bounded.

I know this to be true but don't know how to prove it.

Any help here would be greatly appreciated,

Cheers