Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace tasks
- {
- class Program
- {
- static void Main(string[] args)
- {
- string name;
- string symbol;
- int symbolCount;
- Console.WriteLine("Введите ваше имя.");
- name = Console.ReadLine();
- Console.WriteLine("Введите желаемый символ.");
- symbol = Console.ReadLine();
- symbolCount = name.Length + 2;
- for (int i = symbolCount; i > 0; i--)
- {
- Console.Write(symbol);
- }
- Console.WriteLine(" ");
- Console.WriteLine(symbol + name + symbol);
- for (int i = symbolCount; i > 0; i--)
- {
- Console.Write(symbol);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement