Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
342 B
0
Indexable
Never
#include <iostream>
#include <cmath>
using namespace std;

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