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 Homework11
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.Write("Введите свое имя:");
- string name = Console.ReadLine();
- int nameLength = name.Length;
- Console.Write("Введите символ для обводки:");
- string symbol = Console.ReadLine();
- for (int i = 0; i < nameLength+2; i++)
- {
- Console.Write(symbol);
- }
- Console.WriteLine($"\n{symbol}{name}{symbol}");
- for (int i = 0; i < nameLength + 2; i++)
- {
- Console.Write(symbol);
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment