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 Вывод_имени
- {
- class Program
- {
- static void Main(string[] args)
- {
- string userNameInput;
- char userCharacterInput;
- Console.Write("Здравствуйте, пользователь. Введите необходимое имя:");
- userNameInput = Console.ReadLine();
- Console.Write("Введите необходимый символ:");
- userCharacterInput = Convert.ToChar(Console.ReadLine());
- for (int i = 0; i < userNameInput.Length + 2; i++)
- {
- Console.Write(userCharacterInput);
- }
- Console.WriteLine("\n" + userCharacterInput + userNameInput + userCharacterInput);
- for (int i = 0; i < userNameInput.Length + 2; i++)
- {
- Console.Write(userCharacterInput);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement