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

This commit is contained in:
2026-09-04 08:43:40 +00:00
parent b91c78e9d5
commit e2c549ae90
+11 -6
View File
@@ -1,6 +1,6 @@
# Лабораторная работа №2
* **Студент:** [ФИО]
* **Студент:** [Грищенко Екатерина]
* **Вариант / Карточка:** [Например: #025 Pikachu]
---
@@ -8,8 +8,13 @@
## Ключевой код
```csharp
// Самая важная часть реализации (методы, структуры, логика)
public class Card
{
public string Name { get; set; }
public int Hp { get; set; }
}
задание 1.1
Console.WriteLine("=== Прокачка покемона ===");
Console.Write("Введите базовую атаку ");
int bsdmg = int.Parse(Console.ReadLine());
Console.Write("Введите уровень ");
int level = int.Parse(Console.ReadLine());
int enddmg = bsdmg+(level*5);
Console.WriteLine($"Итоговая атака: {enddmg}");
Задание 1.2