#include
#include
#include
using namespace std;
int main(){
SetConsoleCP(1251);
SetConsoleOutputCP(1251);
const int n = 3;
int arr[n][n];
int ptr[n+20],max=0,ptr1[n+20];
for (int i = 0;i < n;i++) {
for (int j = 0;j < n;j++) {
arr[i][j] = rand() % 100 + 1;
cout
}
cout
}
for (int i = 0;i < n;i++) {
if (arr[i][1] > max) {
max = arr[i][1];
}
}
cout
for (int i = 0;i < n;i++) {
for (int j = 0;j < n;j++) {
if (arr[i][j] < max) {
ptr[j] = i;
ptr1[j] = j;
cout
", номер столбца = "
arr[i][j]
}
}
}
system("pause");
return 0;
}