Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Задача_2._5
- {
- class Program
- {
- static void Main(string[] args)
- {
- int a = 0;
- Console.WriteLine("Здравствуйте! Я хотел бы написать ваше имя в прямоугольнике из символа, который вы введёте.");
- Console.WriteLine("Введите имя.");
- string name = Console.ReadLine();
- Console.WriteLine("Задайте символ");
- string simvol = Console.ReadLine();
- while (a < name.Length + 2)
- {
- Console.Write(simvol);
- a += 1;
- }
- a = 0;
- Console.WriteLine();
- Console.Write(simvol);
- Console.Write(name);
- Console.WriteLine(simvol);
- while (a < name.Length + 2)
- {
- Console.Write(simvol);
- a += 1;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement