Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- puts 'How many bottle of beer are on the wall?'
- bottle = gets.chomp.to_i
- while bottle > 0
- puts <<OUTPUT
- #{bottle} bottles of beer on the wall,
- #{bottle} bottles of beer.
- If you take one down and pass it around,
- thats #{bottle -= 1} bottles of beer on the wall.
- OUTPUT
- end
Add Comment
Please, Sign In to add comment