99 bottles of beer on the wall in TOM. By John Jensen No Copyright, this code is placed in the public domain. implementation class beer Every program needs a main. int main Array arguments { int beers; beers = 99; while (beers > 0) { [[[stdio out] print beers] print " bottles of beer on the wall, "]; [[[stdio out] print beers] print " bottles of beer.\n"]; [[stdio out] print "Take one down, pass it around, "]; beers--; if (beers != 0) { [[[stdio out] print beers] print " bottles of beer on the wall.\n\n"]; } else { [[stdio out] print "no more bottles of beer on the wall.\n\n"]; } } = 0; } end; implementation instance beer end;