shtakai
5/9/2016 - 7:59 PM

fact.rb

require 'pp'

def recursive(n)
  n == 1 ? 1 : n*recursive(n-1)
end

pp recursive(7)