#include
int main()
{
const int n = 4;
int a[n][n]=
{
{1,2,3,4},
{4,3,2,1},
{1,2,3,4},
{4,3,2,1}
};
for (int i=0; i a[i][i] = 0;
for (int i=1; i for (int j=0; j a[i][j] = 1;
for (int i=0; i {
for (int j=0; j std::cout <<a[i][j] <<' ';<br> std::cout <<std::endl;<br> }
return 0;
}