Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
def fact(n)
return 1 if n == 0
f = 1
n.downto(1) do |i|
f *= i
end
f
puts fact(ARGV[0].to_i)