import java.util.
*;
public class matrix
public static void main (String args[])
Scanner br= new Scanner (System.in);
System.out.println("Enter the no of rows");
int row=br.nextInt();
System.out.println("Enter the no of columns ");
int col=br.nextInt();
int a [] []= new int[row] [col];
//input array elements
System.out.println("Enter"+(row*col)+ "Array Elements");
for (int i=0;i<row;i++)
for (int j=0;j<col;j++)
a[i][j]=br.nextInt();
// Print the array elements
System.out.println("The array is :\n");
for(int i=0;i<row;i++)
{
for(int j=0;j<col;j++)
System.out.print(a[i][j]+" ");
System.out.println();