From: brabuhr@... Date: 2009-07-18T11:14:31+09:00 Subject: Re: Need Help with another Simple Program On Fri, Jul 17, 2009 at 9:52 PM, Max Norman wrote: > As an exercise out of Chris Pine's 'Learning to Program,' I've attempted > to build a program that calculates the number of leap years between two > given years.... > > while year_one.to_i < year_two.to_i >  if year_one%4 == 0 >    if year_one%100 != 0 || year_one%400 == 0 >      total = total + 1 >      year_one = year_one+ 1 >    else >      year_one = year_one+ 1 >  end > end > end > > What's going wrong? Consider this snippet: i = 0 while i < 1 if false i += 1 # oops, we never get here end end