Prove:

Let a,b exist in the reals with a<b,
(i) For the open interval E=(a,b) prove that the inf E=a and sup E=b
(ii) for the closed interval F=[a,b], prove that inf F=a and sup F=b.