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 _2._5
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.Write("Введите имя ");
- string name = Console.ReadLine();
- Console.Write("Введите символ ");
- char cimvol =Convert.ToChar(Console.ReadLine());
- for(int i =0; i< name.Length+4;i++)
- {
- Console.Write(cimvol);
- }
- Console.WriteLine();
- Console.WriteLine(cimvol+" "+name+" "+cimvol);
- for (int i = 0; i < name.Length + 4; i++)
- {
- Console.Write(cimvol);
- }
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement