c# how to format text in the center of a console application code example
Example: c# center text
// Console app: center text
Console.WriteLine(String.Format("{0," + Console.WindowWidth / 2 + "}", "TEXT"));
// Console app: center text
Console.WriteLine(String.Format("{0," + Console.WindowWidth / 2 + "}", "TEXT"));