#include <stdio.h> void main() { int i,j,row = 0 ,colum = 0,max; int a[3][4]={{1,2,3,4},{9,8,7,6},{-10,10,-5,2}}; max = a[0][0]; for(i=0;i<=2;i++) for(j=0;j<=3;j++) if(a[i][j]>max) { max = a[i][j]; row = i; colum = j; } printf("最大值=%d\n行号= %d\n列号= %d\n",max,row,colum); } 这个程序运行出来行和列不对呀
69,369
社区成员
243,082
社区内容
加载中
试试用AI创作助手写篇文章吧