Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

First homework of new year!!

Name: Anonymous 2010-01-01 23:19

Let X be an integer.

1) Read in integer X from standard input
3) Let Y be X multiplied by 2
4) output "SUSSMAN!!!!!!" Y times

Name: Anonymous 2010-01-01 23:51

why is everyone stupid


main =
  x <- readLine
  y <- return $ x * 2
  replicateM_ y $ putStrLn "SUSSMAN!!!!!!"

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List