square n = let allNumbers = [0..] in head $ filter (== n*n) allNumbers main = putStrLn ("square 5 = " ++ show (square 5))
Standard input is empty
square 5 = 25
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!