You are on page 1of 1

#include <iostream>

using namespace std;

int mat[100][100];
int i,j,n,m;
int main()
{
cin>>n>>m;

for(i=1;i<=n;i++)
{?
for(j=1;j<=m;j++)
{
if(i>j) mat[j] = j;
else if(i<j) mat[j] = i;
else if(i==j) mat[j]? = i;
}
}

for(i=1;i<=n;i++)
{
cout<<endl;
for(j=1;j<=m;j++)
{
cout<<mat[j]<<" ";
}
}
return 0;
}

You might also like