Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace homework
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.Write("Введите ваше имя: ");
- string name = Console.ReadLine();
- Console.Clear();
- for (int i = 0; i < 3; i++)
- {
- for(int x=0; x< name.Length+4;x++)
- {
- Console.Write("%");
- }
- Console.WriteLine("");
- }
- Console.SetCursorPosition(1, 1);
- Console.Write(" "+name+" ");
- Console.SetCursorPosition(0, 3);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement