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