Let's will write $K_n$ for the Eilenberg-MacLane space $K(\mathbb{Z},n)$. I remind that $K_n$ is equivalent to the loop space of $K_{n+1}$.
Let’s consider the map $\smallsmile:K_n\times K_m \to K_{n+m}$ corresponding to the cup product.
Given two elements $x:K_n$ and $y:K_m$, we can see $x$ as a loop in $K_{n+1}$, then pair it with $y$ to obtain a loop in $K_{n+1}\times K_m$, apply the cup product there (we obtain a loop in $K_{n+m+1}$), and finally see that loop as an element of $K_{n+m}$. It turns out that what we obtain is equivalent to the cup product of $x$ and $y$ (there might be a sign depending on how things are set up).
Is there a reference for this result? It seems rather basic but I couldn’t find it discussed anywhere.