From: 7stud -- Date: 2009-07-18T13:58:04+09:00 Subject: Re: Need Help with another Simple Program Max Norman wrote: > >> Consider this snippet: >> >> i = 0 >> while i < 1 >> if false >> i += 1 # oops, we never get here >> end >> end > > I'm not sure I understand this. What does that snippet exemplify? Look at this: while year_one.to_i < year_two.to_i if false if year_one%100 != 0 || year_one%400 == 0 total = total + 1 year_one = year_one+ 1 else year_one = year_one+ 1 end Also, what value is stored in the variable year_one right before the while loop starts? -- Posted via http://www.ruby-forum.com/.