How would you make this loop stop when it reaches number one?

-- 
Posted via http://www.ruby-forum.com/.