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 ConsoleApp4
- {
- class Program
- {
- static void Main(string[] args)
- {
- string name;
- char symbol = '@';
- Console.WriteLine("Введите ваше имя:");
- name = Console.ReadLine();
- Console.Clear();
- Console.SetCursorPosition(10, 10);
- for (int i = 0; i < name.Length + 4; i++)
- {
- Console.Write(symbol);
- }
- Console.SetCursorPosition(10, 12);
- Console.Write(symbol);
- Console.SetCursorPosition(12, 12);
- Console.Write(name);
- Console.SetCursorPosition(10 + name.Length + 3, 12);
- Console.Write(symbol);
- Console.SetCursorPosition(10, 14);
- for (int i = 0; i < name.Length + 4; i++)
- {
- Console.Write(symbol);
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment