generated from admin/template
upd
This commit is contained in:
+23
-6
@@ -1,15 +1,32 @@
|
||||
# Лабораторная работа №1
|
||||
|
||||
* **Студент:** [ФИО]
|
||||
* **Вариант / Карточка:** [Например: #025 Pikachu]
|
||||
* **Студент:** [Мастио Вячеслав Алексеевич]
|
||||
|
||||
---
|
||||
|
||||
## Ключевой код
|
||||
```csharp
|
||||
// Самая важная часть реализации (методы, структуры, логика)
|
||||
public class Card
|
||||
namespace DefaultNamespace;
|
||||
|
||||
public class main
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public int Hp { get; set; }
|
||||
static void Main(string[] args) {
|
||||
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("****************************************");
|
||||
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user