/* ARexx script version of 99 Bottles of Beer About ARexx: http://en.wikipedia.org/wiki/AREXX Written by Harry Sintonen . */ i = 99 do forever p = gen(i) say p 'on the wall,' p || '.' if i = 0 then leave i = i - 1 say 'Take one down pass it around,' gen(i) 'on the wall.' end say 'Go to the store and buy some more, 99 bottles of beer on the wall.' exit gen: procedure a = arg(1) if a = 0 then m = 'no more bottles' else if a = 1 then m = a 'bottle' else m = a 'bottles' return m 'of beer'