Skip to content

Instantly share code, notes, and snippets.

@Strelok78
Last active July 24, 2024 20:47
Show Gist options
  • Save Strelok78/080cdd469e40d5d699a7c47aad82a017 to your computer and use it in GitHub Desktop.
Save Strelok78/080cdd469e40d5d699a7c47aad82a017 to your computer and use it in GitHub Desktop.
iJunior_Lesson_2
namespace iJuniorPractice;
class Program
{
static void Main(string[] args)
{
string informationAssembled = "";
string[] questions = new string[]
{
"Напишите свое имя, пожалуйста: ",
"Введите свой возраст: ",
"Введите свой любимый класс в РПГ играх: ",
"Напишите Вашу любимую игру: "
};
string[] enteredInfo = new string[questions.Length];
for (int i = 0; i < questions.Length; i++)
{
Console.Write(questions[i]);
enteredInfo[i] = Console.ReadLine();
}
Console.WriteLine($"Ваше имя {enteredInfo[0]} и Вам {enteredInfo[1]}, любимый класс {enteredInfo[2]}, а любимая игра {enteredInfo[3]}!");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment