AlexRaynor

2.5 NameDisplay

Aug 26th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.79 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 ConsoleApp13
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Console.WriteLine("Имя?");
  14.             string UserName = Console.ReadLine();
  15.             Console.WriteLine("Символ?");
  16.             string Symbol = Console.ReadLine();
  17.             for (int i = 0; i < UserName.Length + 4; i++)
  18.             {
  19.                 Console.Write(Symbol);
  20.             }
  21.             Console.WriteLine("\n"+ Symbol + " " + UserName + " " + Symbol);
  22.             for (int i = 0; i < UserName.Length + 4; i++)
  23.             {
  24.                 Console.Write(Symbol);
  25.             }
  26.             Console.WriteLine("\n");
  27.         }
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment