Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace CSLight
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Введите имя:");
- string username = Console.ReadLine();
- Console.WriteLine("Введите символ:");
- string sign = Console.ReadLine();
- for (int i = 0; i < username.Length + 2; i++)
- {
- Console.Write(sign);
- }
- Console.Write("\n" + sign);
- for (int i = 0; i < username.Length; i++)
- {
- Console.Write(username[i]);
- }
- Console.Write(sign + "\n");
- for (int i = 0; i < username.Length + 2; i++)
- {
- Console.Write(sign);
- }
- Console.ReadKey();
- }
- }
- }
Add Comment
Please, Sign In to add comment