android.moparisthebest.org/source/downloads/code/test.coffee
2011-08-21 16:21:59 -04:00

9 lines
155 B
CoffeeScript

fibonacci = (n) ->
if n <= 2
n
else
arguments.callee(n - 2) + arguments.callee(n - 1)
for x in [1..10]
console.log "#{x} : #{fibonacci(x)}"