Triangle by ranha

n;f(a,b){for(a<n&&f(a+b-1,b+1);a<=n;a+=b++)printf(a+b<=n?"%d ":"%d\n",a);}main(){f(scanf("%d",&n),2);}

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

download

return to the top page