Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace HW_2025
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- string userSymbol = "";
- string userName = "";
- string userNameString = "";
- string userSymbolString = "";
- Console.WriteLine("Введите символ для обводки имени?");
- userSymbol = Console.ReadLine();
- Console.WriteLine("Введите ваше имя");
- userName = Console.ReadLine();
- userNameString = $"{userSymbol}{userName}{userSymbol}";
- for (int i = 0; i < userNameString.Length; i++)
- {
- userSymbolString += userSymbol;
- }
- Console.WriteLine($"\n{userSymbolString}");
- Console.WriteLine(userNameString);
- Console.WriteLine(userSymbolString);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement