Advertisement
dxoraxs

Untitled

Apr 11th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.64 KB | None | 0 0
  1. using System;
  2.  
  3. namespace homework
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             Console.Write("Введите ваше имя: ");
  10.             string name = Console.ReadLine();
  11.             Console.Clear();
  12.             for (int i = 0; i < 3; i++)
  13.             {
  14.                 for(int x=0; x< name.Length+4;x++)
  15.                 {
  16.                     Console.Write("%");
  17.                 }
  18.                 Console.WriteLine("");
  19.             }
  20.             Console.SetCursorPosition(1, 1);
  21.             Console.Write(" "+name+" ");
  22.             Console.SetCursorPosition(0, 3);
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement