Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/prog/ Challenge 9001

Name: Anonymous 2011-05-01 19:51

The correct title of this article is /prog/ Challenge 9001. It appears incorrectly here because of technical restrictions.

The task:

Print numbers from 1 to 1000 without using any loop or conditional statements. Don't just write the printf() or cout statement 1000 times.

inb4 lipthfags and dead dogs using some obscure functionality of their obscure languages.

Name: Anonymous 2011-05-01 22:06

>>18
Where is the recursion? All it does is generate the code (progn (print 1) ... (print 1000)) which itself features no recursion. A smart compiler may be able to unroll a loop like that.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List