Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int nameLength;
- Console.Write("Введите ваше имя: ");
- string name = Console.ReadLine();
- Console.Write("Введите символ: ");
- string symbol = Console.ReadLine();
- nameLength = name.Length;
- Console.ForegroundColor = ConsoleColor.Yellow;
- for (int i = 0; i < nameLength; i++)
- {
- Console.Write(symbol + " ");
- }
- Console.WriteLine();
- Console.WriteLine(symbol + " " + name + " " + symbol);
- for (int i = 0; i < nameLength; i++)
- {
- Console.Write(symbol + " ");
- }
- Console.WriteLine();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement