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 day_00
- {
- class Program
- {
- static void Main(string[] args)
- {
- int len;
- int counter;
- char sym;
- string str;
- counter = 0;
- Console.Write("Привет! Введи своё имя: ");
- str = Console.ReadLine();
- Console.Write("Отлично! Введи любой символ, букву или цифру: ");
- sym = Convert.ToChar(Console.Read());
- len = str.Length + 4;
- while (counter++ < len)
- Console.Write(sym);
- Console.Write("\n" + sym + " " + str + " " + sym + "\n");
- counter = 0;
- while (counter++ < len)
- Console.Write(sym);
- Console.Write("\n");
- }
- }
- }
Add Comment
Please, Sign In to add comment