Example

In the direct product Z × Z/6Z, the invertible elements are

(1,1), (1,5), (-1,1), (-1,5),

i.e., all elements in which the first coordinate is invertible and the second coordinate is invertible.