repo.or.cz
/
ruby-svn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
* transcode.c (trans_open_i): check the result of rb_transcoding_open.
[ruby-svn.git]
/
benchmark
/
other-lang
/
fib.rb
blob
ec587eabe02c9101a97e232f496de69772197efa
1
def fib n
2
if n < 3
3
1
4
else
5
fib(n-1) + fib(n-2)
6
end
7
end
8
9
fib(34)