Untitled

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

using namespace std;

int main()
{
	int n;
	char a;
	cin >> n;
	int mas[100][100];
	for (int i = 1; i < n+1; i++)
	{
		for (int j = 1; j < n+1; j++)
		{
			 mas[i][j] = i*j;
		}
	}
	for (int i = 1; i < n +1; i++)
	{
		for (int j = 1; j < n+1; j++)
		{
			cout << mas[i][j] << " ";
		}
		cout << endl;
	}
}