object Main extends App { def fib(n: Int): Int = if (n <= 1) n else fib(n-1) + fib(n-2) println(fib(7))}
Standard input is empty
13
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!