import IOmagic :: [Int]magic = [5,3,3,8,0,7,5,8,1,4]riddle s = splitAt 5 (concat(map show [mod (fromEnum a + b) 10 | (a, b) <- zip s magic]))main = do hFlush stdout s <- getLine putStrLn (show (riddle s))
Standard input is empty
prog.hs:1:8: Could not find module `IO' It is a member of the hidden package `haskell98-2.0.0.1'. Use -v to see a list of the files searched for.
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!