Diamond Matrix by samuimo

i,n,k;main(j){gets(&n);for(n-=48;++i<n*2;j=puts(""))for(k=-abs(i-n)+n,printf("%*s",n-k,"");j<k*2;printf("%d",-abs(j++-k)+k));}

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

download

return to the top page