Given the normal Console in C#, the default color of the text foreground is "Black". The task is to change this color to some other color.
Approach: This can be done using the
ForegroundColor property in the
Console class of the System package in C#.
Program 1: Changing the Console Foreground Color to Blue.
Output:
👁 Image
Program 2: The list of available colors in which the ForegroundColor can be changed are