import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
int M,N;
Scanner in=new Scanner(System.in);
M=in.nextInt();
N=in.nextInt();
int[][] arr = new int[M][N];
for (int i = 0; i < M; i++) {
for (int j = 0; j < N; j++) {
arr[i][j]=in.nextInt();
}
}
for (int i = 0; i < M; i++) {
for (int j = 0; j < N; j++) {
System.out.print(arr[i][j] + " ");
}
System.out.println();
}
}
}
Comments
Leave a comment