int CheckSaddleElement(int mat[][COLS], int rows)
{
int i=0, j=0, k=0;
int min = 0, max = 0, col = 0;
for (i = 0; i < rows; i++)
{
min = mat[i][0];
for (j = 0; j < 10; j++)
{
if (mat[i][j] = max)
max = mat[k][col];
}
}
if (max == min)
return 1;
return 0;