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