This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 18th, 2013  |  syntax: None  |  size: 0.30 KB  |  views: 226  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. puts '99 BOTTLES GAME!'
  2.  
  3. number = 99
  4.  
  5. while number <= 99
  6.         puts number.to_s + ' bottles of beer on the wall.'
  7.         puts number.to_s + ' bottles of beer.'
  8.         puts 'Take one down, pass it arond...'
  9.         number.to_i --
  10.         puts number.to_s + ' bottles of beer on the wall!'
  11.  
  12.         if number == 0
  13.                 break
  14.         end
  15. end
clone this paste RAW Paste Data