Triangle by nn

main(i,m,v,u){for(i=m=atoi(gets(m));u=i--;)for(v=i*~-i/2;v+=u++,m/v;)printf("%d%c",v,u+v>m?10:32);}

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

download

return to the top page