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

This commit is contained in:
2026-10-15 16:28:36 +00:00
parent 0170bb19e6
commit 2d299526ed
+34 -11
View File
@@ -1,15 +1,38 @@
# Лабораторная работа №1
* **Студент:** [Соломов Богдан Егорович] using System;
* **Вариант / Карточка:** [#025 Pikachu]
--- namespace lab01
## Ключевой код
```csharp
// Самая важная часть реализации (методы, структуры, логика)
public class Card
{ {
public string Name { get; set; } class Lab01Tasks
public int Hp { get; set; } {
static void Main(string[] args)
{
// Console.WriteLine("1 БЛОК 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.WriteLine("1 БЛОК 2 ЗАДАНИЕ");
Console.Write($"Введите имя тренера: ");
string trainerName = Console.ReadLine();
Console.Write($"Введите имя покемона: ");
string pokemonName = Console.ReadLine();
Console.Write($"Введите стихию: ");
string elementType = Console.ReadLine();
Console.Write($"Введите регион: ");
string regionName = Console.ReadLine();
Console.WriteLine("****************************************");
Console.WriteLine("ПАСПОРТ ПОКЕМОНА");
Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})");
Console.WriteLine($"Покемон: {pokemonName} [Стихия: {elementType}]");
Console.WriteLine("****************************************");
}
}
} }