SHARE
TWEET

Untitled

a guest Oct 18th, 2013 226 Never
  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
RAW Paste Data
Top