Input :
Enter how many row : 2
Enter how many column : 3
2
3
5
6
8
0
Output :-
2 3 5
6 8 0
Input :
Enter how many row : 3
Enter how many column : 3
2
3
5
6
8
0
7
1
3
Output :-
2 3 5
6 8 0
7 1 3