An example of center of a ring is not two sided ideal
I proved the first part of the question. Can you help me to find an example for the second part?
$1$ is always in the centre.
The only way for the centre to be an ideal is if it is the entire ring (i.e. the ring is commutative). Any non-commutative ring is a counterexample.