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;
- using System.Threading.Tasks;
- namespace HomeWorck_2_7_1
- {
- class Program
- {
- static void Main(string[] args)
- {
- string userName;
- string userSymbol;
- string characters = "";
- int lefRightBoards = 2;
- int userStringLength = 0;
- Console.WriteLine("Введите Ваше имя!");
- userName = Console.ReadLine();
- Console.WriteLine("Введите символ ограждение");
- userSymbol = Console.ReadLine();
- userStringLength = lefRightBoards + lefRightBoards + userName.Length;
- for (int i = 1; i <= userStringLength; i += 1)
- {
- characters += userSymbol;
- }
- Console.WriteLine(characters);
- Console.WriteLine(userSymbol + " " + userName + " " + userSymbol);
- Console.WriteLine(characters);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement