Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- numb = 10
- while numb != 1
- puts numb.to_s + ' bottles of beer on the wall ' + numb.to_s + ' bottles of beer '
- puts 'take one down, pass it around ' + (numb - 1).to_s + ' bottles of beer on the wall'
- numb = (numb - 1)
- if numb == 1
- puts numb.to_s + ' bottle of beer on the wall' + numb.to_s + ' bottle of beer'
- puts 'take it down, pass it around no bottles of beer on the wall'
- end
- end
Add Comment
Please, Sign In to add comment