Christmas Tree by smkt

main(x,y,t,k,u){scanf("%d",&t);k=t/2+1;for(y=0;u=y/2,y<t+4;y++){for(x=0;x<k+u+3;x+=printf(x==k?y==2?++x,"/_\\":y?"%c":"\\ /":x==k-2&y==1?"-->*<--":y==t+3&x==k-1?"[___]":"%c",y>2&y<t+3?x==k-u?47:x==k+u+2?92:x<k-u?32:x&1?k-u&1?y&1?92:47:95:k-u&1?95:y&1?92:47:32));puts("");}}

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

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page