#include<iostream>
#include<iomanip>
using namespace std;
void main()
{
int a[3][4] = { {1,2,3,8},{4,5,6},{-10,2,9} };
int max = a[0][0];
int row=0, colum=0;
for (int i = 0;i < 3;i++)
{
for (int j = 0;j < 4;j++)
{
std::cout << setw(4) << a[i][j] << " ";
if (a[i][j] > max)
{
max = a[i][j];
row = i;
colum = j;
}
}
std::cout << std::endl;
}
std::cout << "max= " << max << " ; " << " row= " << row << " colum= " << colum << std::endl;
std::cin.get();
}