Advertisement
randomm369

2.5

Aug 24th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.82 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace _2._5
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Console.Write("Введите имя ");
  14.             string name = Console.ReadLine();
  15.             Console.Write("Введите символ ");
  16.             char cimvol  =Convert.ToChar(Console.ReadLine());
  17.  
  18.             for(int i =0; i< name.Length+4;i++)
  19.             {
  20.                 Console.Write(cimvol);
  21.             }
  22.             Console.WriteLine();
  23.             Console.WriteLine(cimvol+" "+name+" "+cimvol);
  24.             for (int i = 0; i < name.Length + 4; i++)
  25.             {
  26.                 Console.Write(cimvol);
  27.             }
  28.             Console.ReadLine();
  29.         }
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement