From: Dave Aronson Date: 2012-02-07T05:36:55+09:00 Subject: Re: Easy loop question On Mon, Feb 6, 2012 at 14:01, Viera Tarcova wrote: > Hello guys, this loop makes all the even numbers being divided by two > and odd numbers multiplied by three plus one. > But how would you make the loop stop when it gets to number one? Ask yourself, why is it going forever? Change the code that makes it go forever, to make it go until the number is one. -Dave -- Dave Aronson:  Available Cleared Ruby on Rails Freelancer (NoVa/DC/Remote) -- see www.DaveAronson.com, and blogs at www.Codosaur.us, www.Dare2XL.com, www.RecruitingRants.com