Rob Fox
  • Member for 10 years, 1 month
  • Last seen more than 1 year ago
  • Estonia
Produce the number 2014 without any numbers in your source code
5 votes

Javascript (29 chars) t=!'',a=t+t+'';a+!t*t+t*t+a*a Not the shortest but some boolean logic

View answer
Print a Christmas Tree
5 votes

Prolog: 127 characters p:-write(' *'),h(1). h(L):-(L<10,nl,w(L,-8),h(L+1));!. w(L,N):-(N<9,N<L,(L>abs(N)->write('0');write(' ')),w(L,N+1));!. Output: * 0 ...

View answer