void setup() {
 
 Serial.begin(115200);
 
   int coef = 1, space, i, j;
   int rows = 10;
 
   for (i = 0; i < rows; i++) {
      for (space = 1; space <= rows - i; space++)
         Serial.print(" ");
 
      for (j = 0; j <= i; j++) {
         if (j == 0 || i == 0)
            coef = 1;
         else
            coef = coef * (i - j + 1) / j;
         Serial.print(coef);
         Serial.print(" ");
      }
 
      Serial.println();
   }
}

void loop() {


}