On 12/3/06, Pete Yandell <pete.yandell / gmail.com> wrote:
> Although I prefer separating the calculation and the output:
>
> leap_years = (num1..num2).select {|x| (x % 4 == 0) && (x % 100 != 0)
> || (x % 400 == 0) }
> leay_years.each do {|x| puts x }

I'm a bit late, but yes, that's how you would use my solution. :)

Cheers,

-- 
Christoffer Sawicki
http://vemod.net/