Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ucheba_sharp4
- {
- class Program
- {
- static void Main(string[] args)
- {
- string name;
- string symbol;
- Console.WriteLine("Введите имя");
- name = Console.ReadLine();
- Console.WriteLine("Введите символ. Размер символа не более 1 знака");
- symbol = Console.ReadLine();
- for (int y=8; y<=10; y+=2 )
- for (int x = 45; x <= 45 + name.Length + 1; x += 1)
- {
- Console.SetCursorPosition(x, y);
- Console.WriteLine(symbol);
- }
- Console.SetCursorPosition(45, 9);
- Console.WriteLine(symbol + name + symbol);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement