mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Add fib39.rb to benchmark/
This commit is contained in:
Executable
+8
@@ -0,0 +1,8 @@
|
||||
# Fib 39
|
||||
|
||||
def fib n
|
||||
return n if n < 2
|
||||
fib(n-2) + fib(n-1)
|
||||
end
|
||||
|
||||
puts fib(39)
|
||||
Reference in New Issue
Block a user