Use Red and Green from ConsoleColor

image_pdfimage_print
   



using System;


public class MainClass
{
    static void Main(string[] args) {

       // Change the console appearance and redisplay.
       Console.Title = "Colored Text";
       Console.ForegroundColor = ConsoleColor.Red;
       Console.BackgroundColor = ConsoleColor.Green;
   }
}