I need to prove that
$$B(a,r) = B(a_1, r)\times \cdots \times B(a_n,r)$$
in $M=M_1\times\cdots \times M_n$
where $M_i$ is a metric space and the metric is $d''(z,z') = \max\{d_i(x_i,y_i), i \in \{1,\ldots,n\}\}$ where $d_i$ is the metric for $M_i$.
I need to prove the result above also for closed balls, but I can't understand what does this means. Can somebody show me in $\mathbb{R}^2$?