Associativity of Operation in Group Direct Product

Theorem
Let $\struct {G \times H, \circ}$ be the group direct product of the two groups $\struct {G, \circ_1}$ and $\struct {H, \circ_2}$.

Then the operation $\circ$ in $\struct {G \times T, \circ}$ is associative.