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.)
Solution creative solution | Comment 29 of 32 |

I'm not computer literate, so I decided to make up my own bogus computer language I call T++.  In it, all the commands I used are valid, two single quotes make a double quote, and close quotes look the same as open quotes.

PrintThrice"PrintThrice"PrintThrice"Add to print: "'" AFTER: first 3 "PrintThrice" AND first "I am awesome!"" Add to print: "'" AFTER: first 3 "PrintThrice" AND first "I am awesome!" Add to print: "'" AFTER: first 3 "PrintThrice" AND first "I am awesome!"

If that doesn't make sense, then maybe it still would to the computer that can use T++.

BTW, yes, I am awesome.


  Posted by Tristan on 2004-02-23 18:48:02
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