lolblach333

Untitled

Apr 12th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp10
  8. {
  9. class Program
  10. {
  11.  
  12. static void Main(string[] args)
  13. {
  14. string Name = Console.ReadLine();
  15. Console.WriteLine("1" + Name); // Длина высота всегда 1
  16.  
  17.  
  18.  
  19. for (int i = 0; i < Name.Length; i++)
  20. {
  21. Console.SetCursorPosition(i + 1, 0);
  22. Console.Write("#");
  23. Console.SetCursorPosition(i + 1, 2);
  24. Console.Write("#");
  25. }
  26. for (int i = 1; i < 4; i++)
  27. {
  28. Console.SetCursorPosition(0, i - 1);
  29. Console.Write("|");
  30. Console.SetCursorPosition(Name.Length + 1, i - 1);
  31. Console.Write("|");
  32. }
  33.  
  34.  
  35.  
  36.  
  37. }
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment