Advertisement
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;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- string a = Console.ReadLine();
- Console.Clear();
- Console.Write("╔");
- for (int i = 1; i < a.Length + 3; i++)
- {
- Console.SetCursorPosition(i, 0);
- Console.Write("═");
- }
- Console.WriteLine("╗");
- Console.Write("║ ");
- Console.WriteLine(a + " ║ ");
- Console.Write("╚");
- for (int i = 1; i < a.Length + 3; i++)
- {
- Console.SetCursorPosition(i, 2);
- Console.Write("═");
- }
- Console.Write("╝");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement