Next
0 / 21
Module DEMO-32-109DEMO-C-32

Read and Print

DEMO-C-32 โ€ข Programming in C

Browser-only practice

Problem Statement

Read a 2D array and print it.

Constraints

1 <= N, M <= 10. Elements within integer range.

Input Format

Input: Rows N, Cols M, then N*M integers.

Output Format

Output: The required result.

Sample Testcases

Submit runs every public testcase in this browser. Results and code never leave this device.

Sample #1
Public sample
5 2
-8 22
48 2
42 44
13 30
39 27
-8 22
48 2
42 44
13 30
39 27
Test Case 1
Sample #2
Public sample
3 4
41 8 39 48
8 33 46 13
32 43 -9 39
41 8 39 48
8 33 46 13
32 43 -9 39
Test Case 2
Sample #3
Public sample
4 4
28 0 3 34
43 23 28 47
21 18 6 11
-1 17 22 2
28 0 3 34
43 23 28 47
21 18 6 11
-1 17 22 2
Test Case 3
Sample #4
Public sample
5 4
0 41 25 5
25 36 32 2
-1 26 40 27
32 39 44 46
21 3 37 -4
0 41 25 5
25 36 32 2
-1 26 40 27
32 39 44 46
21 3 37 -4
Test Case 4

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
Editor settings