Diamond Matrix by Jay Dough

main(c,i,j){char*x="12345678987654321";for(i=scanf("%d",&c);i<c*2;i++){j=c-abs(c-i);printf("%*.*s%s\n",c,j,x,x+18-j);}}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page