kwest87

Untitled

Mar 23rd, 2022
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.93 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.             int indent = -1;
  17.  
  18.             Console.Write("Введите имя : ");
  19.             name = Console.ReadLine();
  20.             Console.Write("Введите символ :");
  21.             sumbol = Console.ReadLine();
  22.  
  23.             for (int i = indent;i < (name.Length) ; i++)
  24.             {
  25.                 Console.Write(sumbol);
  26.             }
  27.             Console.WriteLine(sumbol);
  28.  
  29.             Console.WriteLine(sumbol+name+sumbol);
  30.  
  31.             for (int i = indent; i < (name.Length); i++)
  32.             {
  33.                 Console.Write(sumbol);
  34.             }
  35.             Console.WriteLine(sumbol);
  36.         }
  37.     }
  38. }
  39.  
Advertisement
Add Comment
Please, Sign In to add comment