// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; namespace E { public class Program { public static void Main(string[] args) { Console.Clear(); Console.BackgroundColor = ConsoleColor.Red; for(int i = 1; i <= 20; i++) { Console.SetCursorPosition(i, i); Console.Write(" "); } Console.BackgroundColor = ConsoleColor.Blue; for(int i = 1; i <= 20; i++) { Console.SetCursorPosition(20-i, i); Console.Write(" "); } Console.SetCursorPosition(1, 21); Console.BackgroundColor = ConsoleColor.Yellow; Console.ForegroundColor = ConsoleColor.Green; Console.Write("Man kan ikke meget"); } } }