ranee

Untitled

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