Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp10
- {
- class Program
- {
- static void Main(string[] args)
- {
- string Name = Console.ReadLine();
- Console.WriteLine("1" + Name); // Длина высота всегда 1
- for (int i = 0; i < Name.Length; i++)
- {
- Console.SetCursorPosition(i + 1, 0);
- Console.Write("#");
- Console.SetCursorPosition(i + 1, 2);
- Console.Write("#");
- }
- for (int i = 1; i < Name.Length; i++)
- {
- Console.SetCursorPosition(0, i - 1);
- Console.Write("|");
- Console.SetCursorPosition(Name.Length + 1, i - 1);
- Console.Write("|");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment