Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (10 sloc) 0.168 kB
def fact(n)
if n == 0
1
else
n * fact(n-1)
end
end
g = ARGV[1].to_i
l = ARGV[0].to_i
puts "#{l} in #{g}: #{fact( g + l - 1 )/(fact(l) * fact(g - 1))}"
Jump to Line
Something went wrong with that request. Please try again.