fact :: Integer -> Integerfact n = if n == 0 then 1 else n * fact (n - 1) main = do putStrLn "n <- " n <- readLn :: IO Integer print $ fact n
100
n <- 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!