kwest87

Untitled

Mar 23rd, 2022
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.90 KB | None | 0 0
  1. [StartCode]
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7.  
  8. namespace ConsoleApp8
  9. {
  10.     internal class Program
  11.     {
  12.         static void Main(string[] args)
  13.         {
  14.             string name ;
  15.             string sumbol;
  16.  
  17.             Console.Write("Введите имя : ");
  18.             name = Console.ReadLine();
  19.             Console.Write("Введите символ :");
  20.             sumbol = Console.ReadLine();
  21.  
  22.             for (int i = -1;i <= (name.Length) ; i++)
  23.             {
  24.                 Console.Write(sumbol);
  25.             }
  26.             Console.WriteLine(sumbol);
  27.  
  28.             Console.WriteLine(sumbol+name+sumbol);
  29.  
  30.             for (int i = -1; i <= (name.Length); i++)
  31.             {
  32.                 Console.Write(sumbol);
  33.             }
  34.             Console.WriteLine(sumbol);
  35.         }
  36.     }
  37. }
  38. [EndCode]
Advertisement
Add Comment
Please, Sign In to add comment