#include "stdafx.h"
#include <iostream>
#include <ctime>
using namespace std;
int FillMatrix(int Mat[5][4])
{
for (int i = 0; i < 5; i++)
{
for (int j = 0; j < 4; j++)
{
Mat[i][j] = rand() % 50;
}
}
return Mat[5][4];
}
int main()
{
srand(time(0));
int Matrix[5][4];
FillMatrix(Matrix);
for (int i = 0; i < 5; i++)
{
for (int j = 0; j < 4; j++)
{
cout << Matrix[i][j] << "\t";
}
cout << endl;
}
system("pause");
return 0;
}