/* Author: Laurent Le Brun /* few improvements by Michaël Cadilhac /* GNU bc version of 99 bottles of beer */ i = 100 while (i--) { print i, " bottle"; if (i != 1) "s"; print " of beer on the wall, " print i, " bottle"; if (i != 1) "s"; print " of beer.\n" print "Take one down, pass it around. " if (i == 1) break print i - 1; " bottle"; if (i != 2) "s"; print " of beer on the wall.\n\n" } print "no more bottles of beer on the wall.\n\n" print "No more bottle of beer on the wall. No more bottles of beer...\n" print "Go to the store and buy some more...99 bottles of beer.\n\n" quit