Write pseudocode to print the following pattern 1 232 34543 4567654 567898765

how to solve this . I am able to print the nos but not able to print in pyramid pattern

int n; cin >> n;
for (int i = 0; i < n; i++) {
	for (int j = i + 1; j <= 2 * i + 1; j++) {
		cout << j;
	}
	for (int j = 2 * i; j >= i + 1; j--) {
		cout << j;
	}
	cout << "\n";
}

i loop handles the no of line.
j loop handles each line.