Untitled

 avatar
unknown
c_cpp
2 years ago
402 B
3
Indexable
#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++;
	}
}
Editor is loading...
Leave a Comment