$ filename "99Bottles.exe"

'uses rtl32  'Create a 32-bit exe
'uses rtl64  'Create a 64-bit exe

'Otherwise executed by co2.exe + oxygen.dll

#console               'When in cmd mode,
% TryAttachConsole     'will not open extra window for console

uses console

cls
print "99 BOTTLES" cr cr

string bottles,bottlem,remain
bottles=" bottles "
bottlem=" bottles "
'
int x
for x=99 to 1 step -1
  if x=1
    bottles=" bottle "
    bottlem=" bottles "
    remain="No"
  elseif x=2
    bottlem=" bottle "
    remain=x-1
  else
    remain=x-1
  end if
  print _  'interesting  
  x bottles      "of beer on the wall" cr + 
  x bottles      "of beer" cr +
                 "Take one down, pass it around" cr +
  remain bottlem "of beer on the wall" cr +
  cr
next


printl "Enter ..."
waitkey