Christmas tree


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

DECLARE @ varchar(max)='',@h INT=0,@w INT=0WHILE @h<18SELECT
@h>7WITH C as(SELECT*,substring(@,number,1)v,number/20r,number%20c
FROM master..spt_values WHERE type='P'and number<358)SELECT @=stuff(@,number,1,CHAR(74+@h%2*5)),@h-=1FROM
c d WHERE v='#'and not exists(SELECT*FROM c WHERE abs(d.c-c)+abs(d.r-r)<2and'A'<v)ORDER BY newid()PRINT @

Enter Parameters

Switch to meta site
loading Hold tight while we fetch your results