Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
322 B
0
Indexable
Never
#include <iostream> 
using namespace std;
int main() {
	int a;
	cin >> a;
	int mas[100][100];
	for (int i = 1; i < a+1; i++) {
		for (int j = 1; j < a+1; j++) {
			mas[i-1][j-1] = i * j;
		}
	}
	for (int i = 0; i < a; i++){
		for (int j = 0; j < a; j++) {
			cout << mas[i][j] << ' ';
		}cout << '\n';
	}
}