This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| while number.to_i >=1 | |
| puts "What's the first number in the 99 bottles of beer on the wall song?" | |
| number= gets.chomp | |
| puts number + " bottles of beer on the wall," + number +" bottles of beer." | |
| puts "Take one down and pass it around,"+((number.to_i)-1).to_s+ " bottles of beer on the wall." | |
| if number.to_i == 1 | |
| break | |
| puts "1 bottle of beer on the wall, 1 bottle of beer. | |
| Take one down and pass it around, no more bottles of beer on the wall. | |
| No more bottles of beer on the wall, no more bottles of beer. |