diff --git a/works/lab-01/all.cs b/works/lab-01/all.cs new file mode 100644 index 0000000..44724b3 --- /dev/null +++ b/works/lab-01/all.cs @@ -0,0 +1,37 @@ +using System; + +class Program { + static void Main() { + //Задание 1 - Объявление переменных и статический вывод данных + //string pokemonName = "Чармандер"; + //string elementType = "Огонь"; + //int level = 1; + //int hp = 95; + + //Console.WriteLine($"=== БАЗА ДАННЫХ ПОКЕМОНОВ ==="); + //Console.WriteLine($"Покемон: {pokemonName}"); + //Console.WriteLine($"Стихия: {elementType}"); + //Console.WriteLine($"Уровень: {level} | HP: {hp}"); + //Console.ReadLine(); + + + //Задание 2 - Интерактивный ввод и динамическое формирование документов + Console.WriteLine("Введите имя тренера:"); + string trainerName = Console.ReadLine(); + + Console.WriteLine("Введите имя покемона:"); + string pokemonName = Console.ReadLine(); + + Console.WriteLine("Введите стихию:"); + string elementType = Console.ReadLine(); + + Console.WriteLine("Введите регион:"); + string regionName = Console.ReadLine(); + + Console.WriteLine("****************************************"); + Console.WriteLine("ПАСПОРТ ПОКЕМОНА"); + Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})"); + Console.WriteLine($"Покемон: {pokemonName} [Стихия: {elementType}]"); + Console.WriteLine("****************************************"); + } +}