Write a program that prints itself.
(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 |