It is necessary to find the maximum element of each row in the array, display it on the screen, and also output the row and column number.
int a, b; for (i = 1; i <= n; i++) { int max = 0; for (j = 1; j <= m; j++) { if (mas[i][j] > max) max = mas[i][j]; a = i; b = j; } cout <<"максимальный элемент="<< max << "\n "; cout <<"номер строки="<<a<< "\n "; cout <<"номер столбца="<< b<< "\n"; } 