Print your code backwards - reverse quine
huh?, 5 characters
!hcuO
I actually have NO idea how it works, but If you download the interpreter, and if you write !hcuO
, then you get Ouch!
To run this, you need to execute the program like this:
huh.exe !hcuO
It will actually look for a file called !hcuO
, but it doesn't exist, so it outputs Ouch!
Mathematica, 3 chars
a 2
a 2
means a
times 2. So the answer is 2 a
.
GolfScript - 2
1
(ie \n1
where \n
is the newline character)
Output:
1
(ie 1\n
)
To quote Ilmari:
GolfScript automatically appends a newline to the end of the output
Thus a newline followed by a number will print the number followed by a newline.