Advertisement
zedok

Untitled

May 1st, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace ConsoleApplication1
  7. {
  8. class Program
  9. {
  10. static void Main(string[] args)
  11. {
  12. string a = Console.ReadLine();
  13. Console.Clear();
  14. Console.Write("╔");
  15. for (int i = 1; i < a.Length + 3; i++)
  16. {
  17. Console.SetCursorPosition(i, 0);
  18. Console.Write("═");
  19. }
  20. Console.WriteLine("╗");
  21. Console.Write("║ ");
  22. Console.WriteLine(a + " ║ ");
  23. Console.Write("╚");
  24. for (int i = 1; i < a.Length + 3; i++)
  25. {
  26. Console.SetCursorPosition(i, 2);
  27. Console.Write("═");
  28. }
  29. Console.Write("╝");
  30. }
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement