void secondresult(int** a, int n) {
int t;
for (int i = 0; i < n-1; i++) {
for (int j = 0; j < n; j++) {
if (a[j][i] > a[j + 1][i]) {
for (int k = 0; k < n; k++) {
t = a[i][k];
a[i][k] = a[i+1][k];
a[i+1][k] = t;
}
}
}
}
}