#include#include#includeint main(){ int a[3][4] = {{41,345,35,23}, {41,345,-2,23}, {41,345,35,23}}; int flag=1; for(int i=0;i<3 && flag;i++){ for(int j=0;j<4;j++){ if(a[i][j]<0){ printf("%d %d %d\n",i,j,a[i][j]); flag=0; break; } } } return 0;}