From: Phrogz Date: 2006-11-08T03:15:33+09:00 Subject: Re: 99 bottles of beer...pg57 Phrogz wrote: > 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 ;)' Oops, I am, of course, missing one line of the song, and a nice newline for breaks. Should be more like: 99.downto( 1 ) do |num| puts puts "#{num} bottles of beer on the wall, #{num} bottles of beer," puts "take one down, pass it around," puts "#{num-1} bottles of beer on the wall" unless num == 1 end puts '0 bottles of beer on the wall ;)'