Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
317 B
0
Indexable
Never
#include <iostream>
#include <math.h>



using namespace std;




int main()
{
	int mass[100][100];
	int n, m;
	int l=0;
	cin >> n >> m;
	for (int i = 0; i < n; i++)
	{
	
		for (int j = 0; j < m; j++)
		{
			 mass[i][j]=l;
			 l++;
			 cout << mass[i][j]<<" ";
		}
		cout << endl;
	}
	

}