This is Exercise 7.14(ii) from Rotman, Introduction to homological algebra, and I'm stuck on it.
If $A$ and $C$ are abelian groups, with $mA = 0 = nC $ and $\gcd(m,n) = 1$ then every extension of $A$ by $C$ splits, i.e., if we have the exact sequence $$0 \to A \to E \to C \to 0$$ then $E \cong A \oplus C.$
My thoughts: perhaps I should use the bijection between Ext$^1_{\mathbb{Z}}(C,A)$ and the extensions of $A$ by $C$. Moreover we have that $nA =A $ and $mC = C.$
Any hint ?