From: jamison edmonds Date: 2006-11-08T03:25:58+09:00 Subject: Re: 99 bottles of beer...pg57 --0-832829986-1162923955=:52895 Content-Type: text/plain; charset=iso-8859-7 Content-Transfer-Encoding: quoted-printable =0A=0Aya the books and I aren=A2t quite there yet, put it wont be=0Along wi= th this ml helping. =0A=0A=0AThanks=0A=0A=0A=0A=0A----- Original Message --= --=0AFrom: Phrogz =0ATo: ruby-talk ML =0ASent: Tuesday, November 7, 2006 12:15:13 PM=0ASubject: Re: 99 bo= ttles of beer...pg57=0A=0AOn 11/7/06, jamison edmonds wrote:=0A> Any thoughts would be appreciated ;)=0A=0AInstead of using a= 'while' loop (unless that's what the book is=0Ateaching you) I think the f= ollowing is more Ruby-esque:=0A=0A99.downto( 1 ) do |num|=0A puts "#{num} = bottles of beer on the wall, #{num} bottles of beer,"=0A puts "take one do= wn, pass it around,"=0Aend=0Aputs '0,Bottles of beer on the wall ;)'=0A=0AN= ote the use of string interpolation also instead of .to_s and +=0A=0A=0A=0A= =0A=0A=0A=0A=0A --0-832829986-1162923955=:52895--