#include<stdio.h>
#include<stdlib.h>
#define N 8
#define KG N-i-1
#define XH ((i+1)*2+1)
#define SZ (XH/2-abs(j-XH/2)+1)
void main() {
int i,j;
for ( i=0;i<N;i++ ) {
for ( j=0;j<KG;j++ ) printf(" "); //注意是两个空格
for ( j=0;j<XH;j++ ) printf("%d ",SZ);
printf("\n");
}
}