Guest User

Untitled

a guest
Oct 17th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. numb = 10
  2.  
  3. while numb != 1
  4. puts numb.to_s + ' bottles of beer on the wall ' + numb.to_s + ' bottles of beer '
  5. puts 'take one down, pass it around ' + (numb - 1).to_s + ' bottles of beer on the wall'
  6. numb = (numb - 1)
  7. if numb == 1
  8. puts numb.to_s + ' bottle of beer on the wall' + numb.to_s + ' bottle of beer'
  9. puts 'take it down, pass it around no bottles of beer on the wall'
  10. end
  11. end
Add Comment
Please, Sign In to add comment