Skip to content

Instantly share code, notes, and snippets.

@DimaMitya
Created February 6, 2025 14:59
Show Gist options
  • Save DimaMitya/5f8a207a41c74c6f35a9061ccbd6ed35 to your computer and use it in GitHub Desktop.
Save DimaMitya/5f8a207a41c74c6f35a9061ccbd6ed35 to your computer and use it in GitHub Desktop.
using System;
namespace triton
{
internal class Program
{
private static void Main(string[] args)
{
string symbol;
string name;
string stringOfSymbols = "";
Console.Write("Введите символ из которого будет сделан прямоугольник: ");
symbol = Console.ReadLine();
Console.Write("Введите ваше имя: ");
name = Console.ReadLine();
name = symbol + name + symbol;
Console.Clear();
for (int i = 0; i < name.Length; i++)
{
stringOfSymbols += symbol;
}
Console.WriteLine($"{stringOfSymbols}\n{name}\n{stringOfSymbols}");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment