This website requires JavaScript.
Explore
Help
Sign In
kotovalexarian-likes-github
/
ruby--ruby
mirror of
https://github.com/ruby/ruby.git
Watch
1
Star
0
Fork
You've already forked ruby--ruby
0
Code
Releases
Activity
ed88975237
ruby--ruby
/
benchmark
/
bm_app_factorial.rb
11 lines
89 B
Ruby
Raw
Blame
History
def
fact
(
n
)
if
(
n
>
1
)
n
*
fact
(
n
-
1
)
else
1
end
end
8
.
times
{
fact
(
5000
)
}
View Git Blame
Copy Permalink