Created
October 29, 2016 22:31
-
-
Save DvdKhl/a036461ab015d02e13464e6dd434c591 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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