Advertisement
Vadim_Rogulev

Untitled

Apr 12th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.97 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Вывод_имени
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int Width = 9; //Console.WindowWidth;
  14.             int Height = 2; //Console.WindowHeight;
  15.             for (int i = 0; i < Width; i++)
  16.             {
  17.                 Console.SetCursorPosition(i, 0);
  18.                 Console.Write("*");
  19.                 Console.SetCursorPosition(i, Height);
  20.                 Console.Write("*");
  21.             }
  22.             for (int i = 1; i < Height; i++)
  23.             {
  24.                 Console.SetCursorPosition(0, i);
  25.                 Console.Write("*");
  26.                 Console.SetCursorPosition(Width - 1, i);
  27.                 Console.Write("*");
  28.             }
  29.             Console.SetCursorPosition(2, 1);
  30.             Console.Write("Вадим");
  31.             Console.ReadKey();
  32.         }
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement