#include
#include
using namespace std;
int const n=8;
int r(int i, int j)
{
if(i if (j return 1;
else
return 2;
else
if (j return 3;
else
return 4;
}
int main(int argc, char *argv[])
{
int m[n][n];
for(int i=0; i for (int j=0; j m[i][j]=r(i,j);
for(int i=0; i for (int j=0; j cout <<m[i][j]<<" ";<br> cout <<endl;<br> }
system("pause");
return EXIT_SUCCESS;
}