Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace C_sharp_Light
- {
- class Program
- {
- static void Main(string[] args)
- {
- string name;
- string frameChar;
- Console.Write("Выше имя - ");
- name = Console.ReadLine();
- Console.Write("Символ - ");
- frameChar = Console.ReadLine();
- if (frameChar.Length > 1)
- frameChar = frameChar.Substring(0, 1);
- for (int x = 0; x < name.Length+2; x++)
- {
- for (int y = 8; y < 11; y++)
- {
- Console.SetCursorPosition(x, y);
- Console.Write(frameChar);
- }
- }
- Console.SetCursorPosition(1, 9);
- Console.Write(name);
- Console.SetCursorPosition(0, 11);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement