Обновить works/lab-01/Readme.md

This commit is contained in:
2026-09-20 22:18:04 +00:00
parent 6a5b63a729
commit d8a45cdc27
+21 -21
View File
@@ -1,24 +1,24 @@
# Лабораторная работа №1 # Лабораторная работа №1
// Задание 1 Статический вывод # // Задание 1 Статический вывод
string pokemonName = "Чармандер"; # string pokemonName = "Чармандер";
string elementType = "Огонь"; # string elementType = "Огонь";
int level = 1; # int level = 1;
int hp = 95; # int hp = 95;
Console.WriteLine("=== БАЗА ДАННЫХ ПОКЕМОНОВ ==="); # Console.WriteLine("=== БАЗА ДАННЫХ ПОКЕМОНОВ ===");
Console.WriteLine($"Покемон: {pokemonName}"); # Console.WriteLine($"Покемон: {pokemonName}");
Console.WriteLine($"Стихия: {elementType}"); # Console.WriteLine($"Стихия: {elementType}");
Console.WriteLine($"Уровень: {level} | HP: {hp}"); # Console.WriteLine($"Уровень: {level} | HP: {hp}");
// ===== Задание 2. Интерактивный ввод ===== # // ===== Задание 2. Интерактивный ввод =====
Console.Write("Введите имя тренера: "); # Console.Write("Введите имя тренера: ");
string trainerName = Console.ReadLine(); # string trainerName = Console.ReadLine();
Console.Write("Введите имя покемона: "); # Console.Write("Введите имя покемона: ");
string pokemonName2 = Console.ReadLine(); # string pokemonName2 = Console.ReadLine();
Console.Write("Введите стихию: "); # Console.Write("Введите стихию: ");
string elementType2 = Console.ReadLine(); # string elementType2 = Console.ReadLine();
Console.Write("Введите регион: "); # Console.Write("Введите регион: ");
string regionName = Console.ReadLine(); # string regionName = Console.ReadLine();
Console.WriteLine("ПАСПОРТ ПОКЕМОНА"); # Console.WriteLine("ПАСПОРТ ПОКЕМОНА");
Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})"); # Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})");
Console.WriteLine($"Покемон: {pokemonName2} [Стихия: {elementType2}]"); # Console.WriteLine($"Покемон: {pokemonName2} [Стихия: {elementType2}]");