#include < stdio.h >
void main()
{
int i,j,row = 0 ,max;
int a[ 3 ][ 3 ];
clrscr();
for (i = 0 ;i < 3 ;i ++ )
{
for (j = 0 ;j < 3 ;j ++ )
{
scanf( " %d " , & a[i][j]);
}
}
max = a[ 0 ][ 0 ];
for (i = 0 ;i < 3 ;i ++ )
{
if (max < a[i][i]) /* 由于3*3矩阵的对角线上下标都相同 */
{
max = a[i][i];
row = i;
}
}
printf( " max=%d ,row=%d " ,max,row);
system( " pause " );
}