/// A short and sweet C# 3.5 / LINQ implementation of 99 Bottles of Beer /// Jeff Dietrich, jd@discordant.org - October 26, 2007 using System; using System.Linq; using System.Text; namespace NinetyNineBottles { class Beer { static void Main(string[] args) { StringBuilder beerLyric = new StringBuilder(); string nl = System.Environment.NewLine; var beers = (from n in Enumerable.Range(0, 100) select new { Say = n == 0 ? "No more bottles" : (n == 1 ? "1 bottle" : n.ToString() + " bott