Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- internal class Program
- {
- static void Main(string[] args)
- {
- string? name;
- char symbol;
- string? symbolLine = "";
- string secondLine;
- Console.Write("Введите имя: ");
- name = Console.ReadLine();
- Console.Write("Введите символ: ");
- symbol = Convert.ToChar(Console.Read());
- secondLine = symbol + name + symbol;
- for(int i = 0; i < secondLine.Length; i++)
- {
- symbolLine += symbol;
- }
- Console.WriteLine(symbolLine);
- Console.WriteLine(secondLine);
- Console.WriteLine(symbolLine);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment