generated from admin/template
Обновить works/lab-01/Readme.md
This commit is contained in:
+14
-5
@@ -7,9 +7,18 @@
|
|||||||
|
|
||||||
## Ключевой код
|
## Ключевой код
|
||||||
```csharp
|
```csharp
|
||||||
// Самая важная часть реализации (методы, структуры, логика)
|
using System;
|
||||||
public class Card
|
|
||||||
{
|
class Program {
|
||||||
public string Name { get; set; }
|
static void Main(string[] args)
|
||||||
public int Hp { get; set; }
|
{
|
||||||
|
Console.OutputEncoding = System.Text.Encoding.UTF8;
|
||||||
|
Console.WriteLine("=== БАЗА ДАННЫХ ПОКЕМОНОВ ====");
|
||||||
|
string pokemonName = "Чармандер";
|
||||||
|
string elementType = "Огонь";
|
||||||
|
int level = 1;
|
||||||
|
int hp = 95;
|
||||||
|
Console.WriteLine($" Покемон: {pokemonName} \n Стихия: {elementType} \n Уровень: {level} | HP: {hp}");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user