Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
395 B
2
Indexable
Never
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int main()
{

	srand(time(NULL));

	int tab[10][10];

	for (int i = 0; i < 10; i++)
	{
		for (int j = 0; j < 10; j++)
		{

			tab[i][j] = 10 + rand() % 90;

		}
	}
	for (int i = 0; i < 10; i++)
	{
		for (int j = 0; j < 10; j++)
		{

			cout  << tab[i][j]<<" ";

		}
		cout << endl;
	}

}
Leave a Comment