From: Rick DeNatale Date: 2010-10-02T03:24:20+09:00 Subject: Re: New to Ruby, Looking for Help With Basic Program On Fri, Oct 1, 2010 at 2:05 PM, Mica Koizumi wrote: > if year1.to_i % 4 == 0 >  leapyear = year1.to_i + 4 >  puts leapyear > end This says 'paraphrasing" if year1 is a leapyear then print year1 + 4 1988 is the only leap year between 1987 and 1990. 1988 + 4 is 1992 BTW, it's not enough for a year to be divisible by 4 to be a leap year. Years divisible by 100 are not leap years (even though they are all divisible by 4) unless they are also divisible by 400. -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Github: http://github.com/rubyredrick Twitter: @RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale