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