mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-12-26 09:28:52 -05:00
9 lines
155 B
CoffeeScript
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)}"
|