Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
faktorial
def faktorial(n) if n==0 return 1 else n*faktorial(n-1) end end puts faktorial(4)
run
|
edit
|
history
|
help
0
3.4.0 / 3.5.2 / 3.5.1 / 3.6.1 / 3.6.5.#
ruby LRU cache with constant get/set
variables 1
regex.rb
piramid2
Arithmetic Operations, Function Calls, Recursion and more in Ruby
piramid
My code
Adiel Vasquez
boolean