Given metric spaces EE and FF, it is well known that
dimHE+dimHF≤dimH(E×F)≤dimHE+dimPF,dimHE+dimHF≤dimH(E×F)≤dimHE+dimPF,
[3pt]dimHE+dimPF≤dimP(E×F)≤dimPE+dimPF[3pt]dimHE+dimPF≤dimP(E×F)≤dimPE+dimPF
and dim̲BE+¯dimBF≤¯dimB(E×F)≤¯dimBE+¯dimBF,
where dimHE, dimPE, dim̲BE, ¯dimBE denote the Hausdorff, packing, lower box-counting, and upper box-counting dimension of E, respectively. In this paper, we shall provide examples of compact sets showing that the dimension of the product E×F may attain any of the values permitted by the above inequalities. The proof will be based on a study on dimension of products of sets defined by digit restrictions.