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.)
re: SOLUTION (2) - Not Mine -- Basic version | Comment 9 of 32 |
(In reply to SOLUTION (2) - Not Mine by SilverKnight)

Translated into QuickBasic from C that becomes:
a$ = "a$ = &&&: PRINT USING a$; CHR$(34); a$; CHR$(34):": PRINT USING a$; CHR$(34); a$; CHR$(34):
which does print out
a$ = "a$ = &&&: PRINT USING a$; CHR$(34); a$; CHR$(34):": PRINT USING a$; CHR$(34); a$; CHR$(34):

Edited on September 19, 2003, 9:46 pm
  Posted by Charlie on 2003-09-19 21:42:00

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 (2)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

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