#include <iostream>
using namespace std;

int main() {

    const int ROWS = 5;
    const int COLS = 5;

    float array[ROWS][COLS];

    int count = 0;

    for (int i = 0; i < ROWS; i++)
    {
        for (int j = 0; j < COLS; j++)
        {
            cout << (array[i][j] = rand() % 10) << "\t";
        }
        cout << endl;
    }

	for (int j = 0; j < COLS; j++)
    {
    int tempmax = array[0][j];
    for (int i = 1; i < ROWS; i++)
        if (array[i][j] > tempmax)
            tempmax = array[i][j];
    cout << tempmax << " \t";
}
}