This website requires JavaScript.
Explore
Help
Sign In
olivier
/
cours0708
Watch
1
Star
0
Fork
You've already forked cours0708
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
master
cours0708
/
P5B
/
ruby
/
factorielle.rb
12 lines
103 B
Ruby
Raw
Permalink
Blame
History
def
fact
(
n
)
if
n
==
0
then
1
else
n
*
fact
(
n
-
1
)
end
end
puts
fact
(
5
)
puts
"
Hello World
"
Reference in New Issue
View Git Blame
Copy Permalink