# Re: 99 bottles of beer...pg57

**URL:** <https://www.ruby-forum.com/t/re-99-bottles-of-beer-pg57/75140>\
**Category:** Ruby\
**Created:** [November 7, 2006, 7:27pm UTC](https://www.ruby-forum.com/t/re-99-bottles-of-beer-pg57/75140 "2006-11-07T19:27:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamison\_edmonds](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/838e76/32.png) [@jamison\_edmonds](https://www.ruby-forum.com/u/jamison_edmonds)\
**Post date:** [November 7, 2006, 7:27pm UTC](https://www.ruby-forum.com/t/re-99-bottles-of-beer-pg57/75140/1 "2006-11-07T19:27:35Z")

</div>

ya the books and I arenâ€™t quite there yet, put it wont be  
long with this ml helping.

Thanks

----- Original Message ----  
From: Phrogz [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
To: ruby-talk ML [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: Tuesday, November 7, 2006 12:15:13 PM  
Subject: Re: 99 bottles of beer…pg57

On 11/7/06, jamison edmonds [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Any thoughts would be appreciated 😉

Instead of using a ‘while’ loop (unless that’s what the book is  
teaching you) I think the following is more Ruby-esque:

99.downto( 1 ) do |num|  
puts “#{num} bottles of beer on the wall, #{num} bottles of beer,”  
puts “take one down, pass it around,”  
end  
puts ‘0,Bottles of beer on the wall ;)’

Note the use of string interpolation also instead of .to\_s and +
