Initial commit: структура проекта и документация

This commit is contained in:
2026-09-05 23:36:18 +03:00
parent 826221993c
commit 976ad81c84
3 changed files with 144 additions and 28 deletions
+32 -11
View File
@@ -1,15 +1,36 @@
# Лабораторная работа №1
## Тема: Введение в язык C#. Переменные, базовые типы данных и консольный ввод/вывод информации
* **Студент:** [ФИО]
* **Вариант / Карточка:** [Например: #025 Pikachu]
---
## Ключевой код
```csharp
// Самая важная часть реализации (методы, структуры, логика)
public class Card
{
public string Name { get; set; }
public int Hp { get; set; }
}
//exercise 1
string pokemoneName = "Чармандер";
string elementType = "Огонь";
int level = 1;
int hp = 95;
Console.WriteLine($"=== БАЗА ДАННЫХ ПОКЕМОНОВ ===\nПокемон: {pokemoneName}\nСтихия: {elementType}\nУровень: {level} | HP: {hp}");
//exercise 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("ПАСПОРТ ПОКЕМОНА");
Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})");
Console.WriteLine($"Покемон: {pokemonName} [Стихия: {elementType}]");
Console.WriteLine("****************************************");
```