Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void WriteTextInPosition(string text, int top)
- {
- Console.WriteLine(String.Format("{0," + ((Console.WindowWidth / 2) + (text.Length / 2)) + "}", text));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement