/** * This little program generate the lyrics to the song * 99 Bottles of Beer as an output. * In case you do not know the song, you will find the lyrics * to the song here: * http://www.99-bottles-of-beer.net/lyrics.html * * This version is made for manycore processors, * i.e. this is not a cluster version! * More information on site http://www.parallelcsharp.com * **/ using System; public class Bottles99 { static string getPart( int nBottles ) { // Just a helper function which spells "bottles"... return nBottles == 1 ? "1 bottle" : nBottles == 0 ? "no more bottles" : nBottles + " bottles"; } static async SingAndDrink