in reply to Eleven Easy Pieces.


This was inspired by Masem's Generating a range of numbers and Juerd's Counting backwards.

You are invited to golf or obfuscate the numbers from 0 to 10 without using numbers. Each number must be generated by a single self contained statement and cannot rely on previous statements.

Obfuscators, use art or artifice.

Golfers, use a one-liner with -le and count from the prompt:

#23456789_1234567 (17) perl -le'print$['

You can use ord() but not on its own. This is to avoid a range of neat but trivial solutions.

I think that solutions 0, 5, 6 and 10 above are minimal (with unnecessary whitespace and punctuation stripped). The function atan2() is allowed even though it contains a number. ;-)

--
John.