Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2020
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ucheba_sharp4
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9.  
  10. string name;
  11. string symbol;
  12.  
  13. Console.WriteLine("Введите имя");
  14. name = Console.ReadLine();
  15. Console.WriteLine("Введите символ. Размер символа не более 1 знака");
  16. symbol = Console.ReadLine();
  17. for (int y=8; y<=10; y+=2 )
  18. for (int x = 45; x <= 45 + name.Length + 1; x += 1)
  19. {
  20. Console.SetCursorPosition(x, y);
  21. Console.WriteLine(symbol);
  22. }
  23. Console.SetCursorPosition(45, 9);
  24. Console.WriteLine(symbol + name + symbol);
  25. Console.ReadKey();
  26.  
  27. }
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement