#include <bits/stdc++.h>
using namespace std;
void print2d(int x,int y,int a[][100])
//多维数组形参:多维数组中,除了第一维外,其他维度的大小必须指定
{
for (int i = 0;i<x;i++)
{
for (int j = 0;j<y;j++)
{
cout << a[i][j] <<' ';
}
cout << endl;
}
}
int main()
{
int a[100][100];
int x , y; //传入x,y
cin >> x >> y;
for (int i = 0;i<x;i++) // 传入数组
{
for (int j = 0;j<y;j++)
{
cin >> a[i][j];
}
}
print2d(x,y,a);
//调用函数的时候,数组直接写数组名字就行,不用[]
return 0;
}