Write code to print the contents of the two-dimensional array array_2d[][…
Write code to print the contents of the two-dimensional array array_2d[][] using a foreach loop.
Model answer
A single foreach with comma-separated loop variables covers both dimensions. The first variable is the row and the second is the column.