Created
November 21, 2020 22:55
-
-
Save Hellhackee/e917ca0210762c163b413267df55e5fd to your computer and use it in GitHub Desktop.
CS Light Lesson 12.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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