Skip to content

Instantly share code, notes, and snippets.

@Hellhackee
Created November 21, 2020 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hellhackee/e917ca0210762c163b413267df55e5fd to your computer and use it in GitHub Desktop.
Save Hellhackee/e917ca0210762c163b413267df55e5fd to your computer and use it in GitHub Desktop.
CS Light Lesson 12.1
string name;
char symbolForBox;
int stringLength;
string stringToOutput="";
Console.Write("Введите ваше имя: ");
name = Console.ReadLine();
Console.Write("Введите символ: ");
symbolForBox = Convert.ToChar(Console.ReadLine());
stringLength = name.Length + 2;
for (int i = 0; i < stringLength; i++)
stringToOutput += symbolForBox;
Console.WriteLine(stringToOutput);
Console.WriteLine(symbolForBox + name + symbolForBox);
Console.WriteLine(stringToOutput);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment