Untitled

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

int main() {
	setlocale(LC_ALL, "Russian");
	int a = 1, b = 1;
	cout << "| ";
	for (int i = 1; i < 11; i++) {
		cout << '|' << i;
	}
	cout << '|';
	cout << endl;

	for (int i = 0; i < 10; i++) {
		cout << '|' << a;
		for (int j = 0; j < 10; j++) {
			cout << '|' << b * a;
			b++;
		}
		cout << '|';
		b = 1;
		cout << endl;
		a++;
	}
}
Leave a Comment