Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
494 B
13
Indexable
Never
package MT02;
import java.util.Scanner;
public class Main 
{
	public static void main(String[] args) 
	{
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int m = s.nextInt();
		int[][] a = new int[n][m];
		int i = 0,j = 0;
		
		for(i = 0;i<n;i++)
		{
			for(j = 0;j<m;j++)
			{
				a[i][j] = s.nextInt();
			}
		}
		
		for(i = 0;i<n;i++)
		{
			 for(j=0;i<m;j++)
			 {
				   System.out.print(a[i][j]+" ");
			 }
			 System.out.print("\n");
		}
	}
}