Advertisement
2629881

Untitled

Jul 25th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.19 KB | None | 0 0
  1. public static void WriteTextInPosition(string text, int top)
  2.         {
  3.             Console.WriteLine(String.Format("{0," + ((Console.WindowWidth / 2) + (text.Length / 2)) + "}", text));
  4.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement