#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;

const int N=4;
const int M=5;

int main() {
	
	srand(time(NULL));
	
	int tab[N][M];
	
	cout << "Przed transpozycja: " << endl;
	for (int i=0; i<N; i++)
	{
		for (int j=0; j<M; j++)
		{
			//wylosujmy liczby z zakresu [-10, 100]
			tab[i][j]= rand()%111-10;
			cout << tab[i][j] << " ";
		}
		cout << endl;
	}
	
	cout << "Po transpozycji: " << endl;
	for (int j=0; j<M; j++)
	{
		for (int i=0;i<N; i++)
			cout << tab[i][j] << " ";
		cout << endl;
	}
	
	
	
	return 0;
}