REM Display 99 bottles of beer song
REM Written by Michael Ranks
REM WebBasic is a BASIC lanquage interpreter that makes it extremely easy
REM to do server-side web programming.
REM Yo get WebBasic - http://www.ddginc-usa.com/webbas.htm
print "Content-type: text/html"
print
beer = 99
DO UNTIL beer < 2
print beer," bottles of beer on the wall, ",beer," bottles of beer.
"
beer = beer - 1
if beer > 1 then
print "Take one down and pass it around, ",beer," bottles of beer on the wall.
" else print "Take one down and pass it around, ",beer," bottle of beer on the wall.
"
endif
LOOP
print "1 bottle of beer on the wall, 1 bottle of beer.
"
print "Take one down and pass it around, no more bottles of beer on the wall.
"
print "No more bottles of beer on the wall, no more bottles of beer.
"
print "Go to the store and buy some more, 99 bottles of beer on the wall."
end