mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-12-25 00:48:53 -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)}"
|