#include
#define M 4
#define N 5
int main()
{
int a[M][N],i,j;
int i1,j1,found;
for(i=0;i
printf("输入的数组为:\n");
for(i=0;i
for(j=0;j
printf("\n");
}
for(i=0;i
found=1;
for(i1=0;i1
break;
}
for(j1=0;j1
break;
}
if(found)
printf("a[%d][%d]=%d\n",i,j,a[i][j]);
}
return 0;
}
#include
#define N 4
#define M 5
void main() { int i,j,a[N][M],b,m,n;
for ( i=0;ifor ( i=b=0;i m=0; for ( j=1;j a[i][m] ) m=j;
n=0; for ( j=1;ja[n][m] ) n=j;
if ( n==i ) { b=1; break; }
}
if ( b ) printf("a[%d][%d]=%d\n",n,m,a[n][m]); else printf("没找到。\n");
}