Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace C_Sharp_Junior
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.Write("Ввидите знак:");
- string inputSign = Console.ReadLine();
- Console.Write("Ввидите имя:");
- string userName = Console.ReadLine();
- for (int i = 0; i < (userName.Length + 2); i++)
- {
- Console.Write(inputSign);
- }
- Console.WriteLine();
- Console.WriteLine(inputSign + userName + inputSign);
- for (int i = 0; i < (userName.Length + 2); i++)
- {
- Console.Write(inputSign);
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement