Last active
April 17, 2022 16:57
-
-
Save Mazday21/146bb74ee588a347c9e304add16e4bfa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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