Demo entry 6356480

test.rb

   

Submitted by anonymous on Apr 18, 2017 at 17:43
Language: Ruby. Code size: 72 Bytes.

def factorial(n)
  return 1 if n == 0
  return n * factorial(n-1)
end

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).