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
- while bottle != 0
- puts bottle + ' bottles of beer on the wall,'
- puts bottle + ' bottles of beer.'
- puts ' If you take one down and pass it around,'
- puts 'thats ' + #{bottle - 1}.to_s + ' bottles of beer on the wall.'
- bottle = bottle - 1
- end
Add Comment
Please, Sign In to add comment