All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Algorithms
print 'print 'print 'print ... (Posted on 2003-09-19) Difficulty: 5 of 5
Write a program that prints itself.

See The Solution Submitted by DJ    
Rating: 4.6875 (16 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Some Thoughts A little theory | Comment 15 of 32 |
A self printing program would have to exist in two parts. One part is the active algorithm, and the other is data which echos the algorithm. With that said, a self printing program could be constructed in BASIC utilizing the DATA, READ, and RESTORE statements. For every n lines of algorithm, there would be n lines of DATA statements echoing the algorithm.
  Posted by Brian Smith on 2003-09-22 09:34:43
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (3)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information