Let $G, H,$ and $K$ be finitely generated abelian groups. If $G \times K \cong H \times K$, show that $G \cong H$. Show by example that this need not be true if we do not assume that the groups are finitely generated.
I have proved the first requirement, but i have no idea about example. Could anyone help me please? thanks in advance.