Guest User

Untitled

a guest
May 25th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. puts 'How many bottle of beer are on the wall?'
  2. bottle = gets.chomp
  3. while bottle != 0
  4. puts bottle + ' bottles of beer on the wall,'
  5. puts bottle + ' bottles of beer.'
  6. puts ' If you take one down and pass it around,'
  7. puts 'thats ' + #{bottle - 1}.to_s + ' bottles of beer on the wall.'
  8. bottle = bottle - 1
  9. end
Add Comment
Please, Sign In to add comment