Hello all!
I would like to propose an little programming competition, where honour and glory is the first price for the winner(s)!
This is the task for the competitors:
Write a program that prints it's own source code to the screen, without performing any input. Write the program as small as possible. (smallest code wins). The text printed to the screen must be in such condition that if it where to be compiled without modification, the result would be the same again, (A copy-past into the compiler, and then compile).
Conditions:
*If you have solved this before, do not post the code to the forum the first thing you do. Let people think for them self for a while. I know all of you hotshot programmers out there have solved this before.
*This is as much a competition with your self as other programmers. Do not cheat yourself by searching the web for an answer! The only loser would be you, that miss out on the experience.
*This programming problem CAN be solved. So don't give up if you don't find the answer a once.
*Anyone can compete!
When you have found an answer that you think is the best, post it and hope to be the first one with that solution. Since the smallest code is the winner, any size optimation to that code will also be a valid entry, so don't post until you have your smallest code. And real programmers don't rip of other programmers, do they?? Size will be measured in number of characters in the source, space, enter and tab not counting. So writing the code on a single line won't make your code smaller, just ugly.
Good luck all! Post any question here.