Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace TriangleSymbol
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- Console.OutputEncoding = Encoding.UTF8;
- string symbol;
- string name;
- string symbolAndName;
- string frame;
- Console.WriteLine("Введите свое имя");
- name = Console.ReadLine();
- Console.WriteLine("Введите символ");
- symbol = Console.ReadLine();
- frame = "";
- symbolAndName = symbol + name + symbol;
- for (int i = 0; i < symbolAndName.Length; i++)
- {
- frame += symbol;
- }
- Console.Write(frame);
- Console.WriteLine("\n" + symbolAndName);
- Console.Write(frame);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement