Initial commit, first 27 tasks
[project-euler.git] / euler15.rb
1 class Integer
2 def factorial
3 Array.new(self) {|i| i + 1}.reduce(:*)
4 end
5 end
6
7 if __FILE__==$0
8 print 40.factorial / (20.factorial ** 2)
9 end