On 6/18/07, Daniel Kempkens <Daniel.Kempkens / gmail.com> wrote:

> I think I missed the total-part of the quiz ;) But implementing a
> total-counter wouldn't be much difficult.

Wouldn't it be:

def fact(n); n > 1 ? n + fact(n-1) : 1; end
puts (1..12).inject(0) { |s,r| s + fact(r) }