- You are given a number n, representing the number of rows.
- You are given a number m, representing the number of columns.
- You are given n x m numbers, representing elements of 2d array arr.
- You are required to display the contents of 2d array
Example 1:
Input: n=2, m=4, arr[][] = {11, 12, 13, 14, 21, 22, 23, 24}
Output:
11 12 13 14
21 22 23 24
Constraints:
1 <= n <= 10^2
1 <= m <= 10^2
-10^9 <= e1, e2, .. n * m elements <= 10^9