generated from admin/template
Обновить works/lab-01/Readme.md
This commit is contained in:
+38
-15
@@ -1,15 +1,38 @@
|
||||
# Лабораторная работа №1
|
||||
|
||||
* **Студент:** [Соломов Богдан Егорович]
|
||||
* **Вариант / Карточка:** [#025 Pikachu]
|
||||
|
||||
---
|
||||
|
||||
## Ключевой код
|
||||
```csharp
|
||||
// Самая важная часть реализации (методы, структуры, логика)
|
||||
public class Card
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public int Hp { get; set; }
|
||||
}
|
||||
|
||||
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("****************************************");
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user