using System.Collections.Generic;
public static void Main()
foreach (var text in Beers(99))
static IEnumerable<string> Beers(int beers)
foreach(var beer in Enumerable.Range(0, beers + 1))
var bottle = qty != 1 ? "bottles" : "bottle";
yield return $"{(qty == 0 ? "NO MORE" : qty.ToString())} {bottle} of beer on the wall!{Environment.NewLine}";
yield return $"{qty} {bottle} of beer on the wall,";
yield return $"{qty} {bottle} of beer,";
yield return $"Take one down, pass it around,";