asd8532
#include<stdio.h>
int main()
{
int i,j,max,row,col,min;
int a[5][5]={{2,33,1,22,12},{24,3,25,6,7,},{31,1,22,4,3},{8,76,5,33,42},{21,22,7,89,10}};
max = a[0][0];
row=0;col=0;
for(i=0;i<5;i++)
for(j=0;j<5;j++)
if(a[i][j]>max)
{
max=a[i][j];
row=i;
col=j;
}
printf("the max nunber:a[%d][%d]=%d\n",row,col,max);
min = a[0][0];
row=0;col=0;
for(i=0;i<5;i++)
for(j=0;j<5;j++)
if(a[i][j]<min)
{
min=a[i][j];
row=i;
col=j;
}
printf("the min nunber:a[%d][%d]=%d\n",row,col,min);
}