Sign in to follow this  
Semion_N

Very Smart Programming Riddle

Recommended Posts

Hello, I saw in one of the forums quite smart riddle: You should write a program which writes itself. This question and answer raised in very interesting article. If you want the article just ask but first- try to answer it by yourself.

Share this post


Link to post
Share on other sites
Quines are pretty straightforward in most languages. Write a program that prints a string twice, make the string the same as the code, and tweak it a little.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this