Skip to content

Instantly share code, notes, and snippets.

@Mazday21
Last active April 17, 2022 16:57
Show Gist options
  • Save Mazday21/146bb74ee588a347c9e304add16e4bfa to your computer and use it in GitHub Desktop.
Save Mazday21/146bb74ee588a347c9e304add16e4bfa to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
internal class Program
{
static void Main(string[] args)
{
char symbolFrame;
string name;
string frame;
Console.WriteLine("Введите имя");
name = Console.ReadLine();
int frameLenght = name.Length + 1;
Console.WriteLine("Введите символ для рамки");
symbolFrame = Convert.ToChar(Console.ReadLine());
for (int i = 0; i <= frameLenght; i++)
{
frame += symbolFrame;
}
Console.WriteLine($"{frame}\n{symbolFrame}{name}{symbolFrame}\n{frame}");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment