using System; // make a word clock with a accuracy of 5 minutes. http://i.imgur.com/3uR86.jpg namespace Clock { class Program { static void Main() { string output = "It is "; var hours = new[] { "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve" }; var minutes = new[] { "five", "ten", "a quarter", "twenty", "twenty-five", "half" }; int NearestMinute = DateTime.Now.Minute / 5; output += minutes[NearestMinute - ((NearestMinute <= 30) ? 7 : 1)]; output += NearestMinute <= 6 ? " past " : " to " + hours[DateTime.Now.Hour - ((DateTime.Now.Hour <= 12) ? 0 : 12)]; Console.WriteLine(output); Console.ReadKey(); } } }