View difference between Paste ID: 82Z9pCYJ and C26sWULh
SHOW: | | - or go back to the newest paste.
1
using System;
2
3
namespace C_sharp_Light
4
{
5
    class Program
6
    {
7
        static void Main(string[] args)
8
        {
9-
            
9+
            string name;
10
            string frameChar;
11
            Console.Write("Выше имя - ");
12
            name = Console.ReadLine();
13
            Console.Write("Символ - ");
14
            frameChar = Console.ReadLine();
15
16
            if (frameChar.Length > 1)
17
                frameChar = frameChar.Substring(0, 1);
18
19
            for (int x = 0; x < name.Length+2; x++)
20
            {
21
                for (int y = 8; y < 11; y++)
22
                {
23
                    Console.SetCursorPosition(x, y);
24
                    Console.Write(frameChar);
25
                }
26
            }
27
            Console.SetCursorPosition(1, 9);
28
            Console.Write(name);
29
30
            Console.SetCursorPosition(0, 11);
31
            Console.ReadKey();
32
        }
33
    }
34
}