def fact(n)
  if n == 1
    return 1
  else
    return n * fact(n - 1)
  end
end

p fact(ARGV.shift.to_i)

