A map $f:R\rightarrow R/I \times R/J$ is defined by $$f(a)=\left( a+I,a+J \right)$$where $I,J$ are ideals of a ring $R$.
I have shown $f$ is a homomorphism, now I'm asked to find $\ker f$. Somewhere below there must be a false statement, because I don't get the required result. Initially I thought it to be $\left\{ 0_R \right\}$, but next we're asked to give examples where $f$ is onto and not. But following the first isomorphism theorem I get $$Im f\cong (R/I \times R/J)/\ker f=(R/I \times R/J)/\{0\}$$ and since $R/I , R/J$ are rings it follows that $R/I \times R/J\cong(R/I \times R/J)/{0}$, and with $Imf\subset R/I \times R/J$ I get that $f$ is surjective.
What am I missing? Thanks