Skip to content

Instantly share code, notes, and snippets.

@DvdKhl
Created October 29, 2016 22:31
Show Gist options
  • Save DvdKhl/a036461ab015d02e13464e6dd434c591 to your computer and use it in GitHub Desktop.
Save DvdKhl/a036461ab015d02e13464e6dd434c591 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleColors {
class Program {
static void Main(string[] args) {
foreach(ConsoleColor colorA in Enum.GetValues(typeof(ConsoleColor))) {
foreach(ConsoleColor colorB in Enum.GetValues(typeof(ConsoleColor))) {
Console.BackgroundColor = colorA;
Console.ForegroundColor = colorB;
Console.Write('#');
}
Console.WriteLine();
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment