From: Gregory Brown Date: 2007-06-19T04:40:56+09:00 Subject: Re: Another Easy Beginner Question On 6/18/07, Daniel Kempkens 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) }