done work

This commit is contained in:
2026-09-20 23:04:06 +03:00
parent ef75a8b25b
commit c7b909595d
2 changed files with 80 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
using System;
class Program
{
static void Main()
{
// ЗАДАНИЕ 1.
string pokemonName1 = "Чармандер";
string elementType1 = "Огонь";
int level = 1;
int hp = 95;
Console.WriteLine("=== БАЗА ДАННЫХ ПОКЕМОНОВ ===");
Console.WriteLine($"Покемон: {pokemonName1}");
Console.WriteLine($"Стихия: {elementType1}");
Console.WriteLine($"Уровень: {level} | HP: {hp}");
Console.WriteLine();
// ЗАДАНИЕ 2.
Console.Write("Введите имя тренера: ");
string trainerName = Console.ReadLine();
Console.Write("Введите имя покемона: ");
string pokemonName2 = Console.ReadLine();
Console.Write("Введите стихию: ");
string elementType2 = Console.ReadLine();
Console.Write("Введите регион: ");
string regionName = Console.ReadLine();
Console.WriteLine();
Console.WriteLine("****************************************");
Console.WriteLine("ПАСПОРТ ПОКЕМОНА");
Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})");
Console.WriteLine($"Покемон: {pokemonName2} [Стихия: {elementType2}]");
Console.WriteLine("****************************************");
}
}
+41
View File
@@ -0,0 +1,41 @@
# Лабораторная работа №1
* Студент: [Грищенко Екатерина Ильинична]
---
## Ключевой код
*Первое задание*
```csharp
string pokemonName1 = "Чармандер";
string elementType1 = "Огонь";
int level = 1;
int hp = 95;
Console.WriteLine("=== БАЗА ДАННЫХ ПОКЕМОНОВ ===");
Console.WriteLine($"Покемон: {pokemonName1}");
Console.WriteLine($"Стихия: {elementType1}");
Console.WriteLine($"Уровень: {level} | HP: {hp}");
Console.WriteLine();
```
---
*Второе задание*
```csharp
Console.Write("Введите имя тренера: ");
string trainerName = Console.ReadLine();
Console.Write("Введите имя покемона: ");
string pokemonName2 = Console.ReadLine();
Console.Write("Введите стихию: ");
string elementType2 = Console.ReadLine();
Console.Write("Введите регион: ");
string regionName = Console.ReadLine();
Console.WriteLine();
Console.WriteLine("****************************************");
Console.WriteLine("ПАСПОРТ ПОКЕМОНА");
Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})");
Console.WriteLine($"Покемон: {pokemonName2} [Стихия: {elementType2}]");
Console.WriteLine("****************************************");
```