for i= -9to 9do for j=1to 9-abs i do print_int j done done