Re: 99 bottles of beer...pg57

Nice
Thanks

----- Original Message ----
From: Shiloh M. [email protected]
To: ruby-talk ML [email protected]
Sent: Tuesday, November 7, 2006 11:50:35 AM
Subject: Re: 99 bottles of beer…pg57

Hi Jamison, I came up with a shorter version. I think it is more
efficient, but I am about as new as you are. Here was my code:

bottles = 99
while bottles > 0
puts bottles.to_s + " bottles of beer on the wall, " + bottles.to_s
+
" bottles of beer. Take one down and pass it around, " + (bottles
= bottles - 1).to_s + " bottles of beer."
end