Исправление оформления

This commit is contained in:
Беляев Антон
2026-09-20 13:17:17 +03:00
parent eb71a7977c
commit 009da26c22
6 changed files with 497 additions and 453 deletions
+67 -66
View File
@@ -1,66 +1,67 @@
# Лабораторная работа №1
---
## Ключевой код
```csharp
using System;
namespace lab01
{
class Lab01Tasks
{
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("****************************************");
}
}
}
```
ВЫВОД:
1 БЛОК 1 ЗАДАНИЕ
=== БАЗА ДАННЫХ ПОКЕМОНОВ ===
Покемон: Чармандер
Стихия: Огонь
Уровень: 1 | HP: 95
1 БЛОК 2 ЗАДАНИЕ
Введите имя тренера: Эш
Введите имя покемона: Булбазавр
Введите стихию: Трава
Введите регион: Канто
****************************************
ПАСПОРТ ПОКЕМОНА
Тренер: Эш (Регион: Канто)
Покемон: Булбазавр [Стихия: Трава]
****************************************
Process finished with exit code 0.
# Лабораторная работа №1
---
## Ключевой код
```csharp
using System;
namespace lab01
{
class Lab01Tasks
{
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("****************************************");
}
}
}
```
## ВЫВОД:
1 БЛОК 1 ЗАДАНИЕ
=== БАЗА ДАННЫХ ПОКЕМОНОВ ===
Покемон: Чармандер
Стихия: Огонь
Уровень: 1 | HP: 95
1 БЛОК 2 ЗАДАНИЕ
Введите имя тренера: Эш
Введите имя покемона: Булбазавр
Введите стихию: Трава
Введите регион: Канто
****************************************
ПАСПОРТ ПОКЕМОНА
Тренер: Эш (Регион: Канто)
Покемон: Булбазавр [Стихия: Трава]
****************************************
Process finished with exit code 0.