Triangle by smly

a,b;main(x,y){scanf("%d",&a);for(y=++b,x<a&&main(x+b);x<=a;x+=++y)printf("%d%c",x,x+y<a?' ':'\n');}

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

download

return to the top page