Guest User

Untitled

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