Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
467 B
0
Indexable
Never
#include <iostream>;
using namespace std;

int main() {
	setlocale(LC_ALL, "Russian");
	int mas[11][11], k = 1;
	for (int i = 0; i < 11; i++) {
		mas[0][i] = i;
	}
	for (int i = 1; i < 11; i++) {
		mas[i][0] = i;
	}
	for (int i = 1; i < 11; i++) {
		for (int j = 1; j < 11; j++) {
			mas[i][j] = mas[0][j] * k;
		}
		k++;
	}
	for (int i = 0; i < 11; i++) {
		for (int j = 0; j < 11; j++) {
			cout << mas[i][j] << ' ';
		}
		cout << endl;
	}
}
Leave a Comment