fib :: Int -> Integerfib 0 = 0fib 1 = 1fib n = fib (n-1) + fib (n-2) main = do print (fib 40)
Standard input is empty
102334155
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!