c# console writeline color

C#
// C# program to illustrate the  
// ForegroundColor property 
using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Text; 
using System.Threading.Tasks; 
  
namespace GFG { 
  
class Program { 
  
    static void Main(string[] args) 
    { 
  
        // Display current Foreground color 
        Console.WriteLine("Default Foreground Color: {0}", 
                                 Console.ForegroundColor); 
  
        // Set the Foreground color to blue 
        Console.ForegroundColor 
            = ConsoleColor.Blue; 
  
        // Display current Foreground color 
        Console.WriteLine("Changed Foreground Color: {0}", 
                                Console.ForegroundColor); 
    } 
} 
} 

Source

Also in C#: