using System; public class Test { public static void Main() { for (var i = 1; i <= 12; i += 1) { Console.WriteLine( "Quarter for month {0} ends in month {1}", i, 3 * Math.Ceiling((double)i / 3) ); } } }