Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 527 Bytes

File metadata and controls

24 lines (20 loc) · 527 Bytes

Print 2d Arrays

Easy


  1. You are given a number n, representing the number of rows.
  2. You are given a number m, representing the number of columns.
  3. You are given n x m numbers, representing elements of 2d array arr.
  4. 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