using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { Program p = new Program(); p.x(); Console.ReadKey(); } void x() { string b = " bottles of beer", c = b.Remove(7, 1), w = " on the wall", t = "Take one down and pass it around, ", n = "o more", x; for (int a = 99; a>0;) { x = a > 2 ? b : c; Console.WriteLine(a + x + w + ", " + a + x + (a-- > 1 ? ".\n" + t + a + (a > 1 ? b : c) + w + ".\n" : ".")); } Console.Write(t + "n" + n + b + w + ".\n\nN" + n + b + w + ", n" + n + b + ".\nGo to the store and buy some more, 99" + b + w + ".\n"); } } }