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