Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- using System.Collections.Generic;
- using System.Text;
- using System.Threading.Tasks;
- namespace CSharpLight
- {
- public static class Program
- {
- public static void Main()
- {
- Console.WriteLine("Введите ваше имя:");
- string name = Console.ReadLine();
- Console.WriteLine("Укажите символ:");
- char simbol = Convert.ToChar(Console.ReadLine());
- int heightMax = name.Length;
- for(int height = -1; height <= heightMax; height++)
- {
- Console.Write(simbol);
- }
- Console.WriteLine("\n" + simbol + name + simbol);
- for (int height = -1; height <= heightMax; height++)
- {
- Console.Write(simbol);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment