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

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