Advertisement
LeRoY_Go

Untitled

Jan 25th, 2022
1,058
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.74 KB | None | 0 0
  1. using System;
  2.  
  3. namespace C_Sharp_Junior
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             Console.Write("Ввидите знак:");
  10.             string inputSign = Console.ReadLine();
  11.             Console.Write("Ввидите имя:");
  12.             string userName = Console.ReadLine();
  13.             for (int i = 0; i < (userName.Length + 2); i++)
  14.             {
  15.                 Console.Write(inputSign);
  16.             }
  17.             Console.WriteLine();
  18.             Console.WriteLine(inputSign + userName + inputSign);
  19.             for (int i = 0; i < (userName.Length + 2); i++)
  20.             {
  21.                 Console.Write(inputSign);
  22.             }
  23.             Console.ReadKey();
  24.         }
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement