mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-10-31 23:35:00 -04: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)}"
|