This commit is contained in:
kosios.obsi
2026-09-05 22:38:00 +03:00
parent 46a871ed95
commit 03310876d9
+10 -10
View File
@@ -5,19 +5,20 @@
--- ---
## Ключевой код ### task 1
```csharp ```csharp
//task 1 //task 1
string pokemonName = "Чармандер";
string elementType = "Огонь";
int level = 1;
int hp = 95;
//string pokemonName = "Чармандер"; Console.WriteLine($"=== БАЗА ДАННЫХ ПОКЕМОНОВ === \nПокемон: {pokemonName}\nСтихия: {elementType}\nУровень: {level} | HP:{hp}");
//string elementType = "Огонь"; ```
//int level = 1;
//int hp = 95;
//Console.WriteLine($"=== БАЗА ДАННЫХ ПОКЕМОНОВ === \nПокемон: {pokemonName}\nСтихия: {elementType}\nУровень: {level} | HP:{hp}");
### task 2
```csharp
//task 2 //task 2
string trainerName = Console.ReadLine(); string trainerName = Console.ReadLine();
string pokemonName = Console.ReadLine(); string pokemonName = Console.ReadLine();
string elementType = Console.ReadLine(); string elementType = Console.ReadLine();
@@ -33,5 +34,4 @@ Console.WriteLine("ПАСПОРТ ПОКЕМОНА");
Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})"); Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})");
Console.WriteLine($"Покемон: {pokemonName} [Стихия: {elementType}]"); Console.WriteLine($"Покемон: {pokemonName} [Стихия: {elementType}]");
Console.WriteLine("****************************************"); Console.WriteLine("****************************************");
```