Name: Anonymous 2009-09-07 11:18
Let's reimplement ed with modern languages!
10 INPUT
20 PRINT "?"
30 GOTO 10
10 INPUT
20 PRINT "?"
30 GOTO 10
import Control.Monad
main = do getLine >>= (\p -> when (p `compare` "q" /= EQ) $ putStrLn "?" >> main)