Help with pyramid numbers

I can not continue with the following task.
999999999
88888888
7777777

22
1
22

7777777
88888888
999999999

So far I have the following scetch. I can not write the numbers in a row (for example 9 times the 9)

void setup() {
     Serial.begin(9600);
     
for (int i = 9; i >= 1; i--) {
        for (int j = 9; j > i; --j) {
        }
        Serial.println(i);
    }
     
    for (int i = 2; i <= 9; i++) {
        for (int j = 0; j < i; ++j) {
        }
      Serial.println(i);
    }
    
    
   
}

void loop() {
  // put your main code here, to run repeatedly:

}

Change serial.println() to serial.print()

(deleted)

Then I have everything in one line. But still not nine times the 9, eight times the 8 etc.

Pay attention to which for loop the Serial.print is located in.

Another hint, use Serial.print() for the numbers, then do the line feed afterwards.