Last active
July 24, 2024 20:47
-
-
Save Strelok78/080cdd469e40d5d699a7c47aad82a017 to your computer and use it in GitHub Desktop.
iJunior_Lesson_2
This file contains hidden or 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
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