#include "stdio.h"
#include "math.h"
int main(void ) {
int a[3][4] = {1, -4, 31, 43, 54, 36, 47, 38, 49, 10,63, 12};
int (*p)[4]=a;
double b,max;
double q[3];
printf("%f\n",a[1][2]);
for (int i = 0; i < 3; ++i)
{
max = fabs(*(*(p+i)));
for (int j = 1; j < 4; ++j)
{
b = fabs(*(*(p + i) + j));
if(b>=max)
max = b;
}
q[i] = max;
}
for (int i = 0; i < 3; ++i) {
for (int j = 0; j < 4; ++j) {
b =fabs(*(*(p + i) + j));
*(*(p+i)+j) = b/q[i];
}
}
for (int i = 0; i < 3; ++i) {
for (int j = 0; j < 4; ++j) {
printf("%lf ",*(*(p+i)+j));
}
}
return 0;
}