Let $A$, $B$ be fields. I showed that $A\times B$ is ring which is not field. I need to show that every ideal in $A\times B$ is principal.
Let $I$ ideal of $A$ and $J$ ideal of $B$. If $I\times J=<(0,0)>$, ideal $I\times J$ is principal. Let $(a,b)\in I\times J$. $<(a,b) >$ is contained in $I\times J$. I need to show $I\times J \subset <(a,b) >$.
I don't know how.
You cannot show this for whatever $(a,b)$. For example note what happens if you happen to choose $(a,b)=(0,0)$. So you need to make sure to choose a "good" element.
Consider the case:
$I$ contains an element $(a,b)$ with both $a,b$ nonzero.
$I$ does not contain such an element. (Show that then $I$ either contains only elemennts of the form $(a,0)$ or $I$ contains only elemennts of the form $(0,b)$.