generated from admin/template
Compare commits
2
Commits
ce97cd9545
...
efb41a5d8a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
efb41a5d8a | ||
|
|
6e939a1575 |
@@ -3,13 +3,28 @@
|
|||||||
* **Студент:** [ФИО]
|
* **Студент:** [ФИО]
|
||||||
* **Вариант / Карточка:** [Например: #025 Pikachu]
|
* **Вариант / Карточка:** [Например: #025 Pikachu]
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Ключевой код
|
string pokemonName = "Чармандер";
|
||||||
```csharp
|
string elementType = "Огонь";
|
||||||
// Самая важная часть реализации (методы, структуры, логика)
|
int level = 1;
|
||||||
public class Card
|
int hp = 95;
|
||||||
{
|
|
||||||
public string Name { get; set; }
|
Console.WriteLine($"=== БАЗА ДАННЫХ ПОКЕМОНОВ === \nПокемон: {pokemonName}\nСтихия: {elementType}\nУровень: {level} | HP:{hp}");
|
||||||
public int Hp { get; set; }
|
```
|
||||||
}
|
|
||||||
|
//task 2
|
||||||
|
string trainerName = Console.ReadLine();
|
||||||
|
string pokemonName = Console.ReadLine();
|
||||||
|
string elementType = Console.ReadLine();
|
||||||
|
string regionName = Console.ReadLine();
|
||||||
|
|
||||||
|
Console.WriteLine($"Введите имя тренера: {trainerName}");
|
||||||
|
Console.WriteLine($"Введите имя покемона: {pokemonName}");
|
||||||
|
Console.WriteLine($"Введите стихию: {elementType}");
|
||||||
|
Console.WriteLine($"Введите регион: {regionName}");
|
||||||
|
Console.WriteLine("");
|
||||||
|
Console.WriteLine("****************************************");
|
||||||
|
Console.WriteLine("ПАСПОРТ ПОКЕМОНА");
|
||||||
|
Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})");
|
||||||
|
Console.WriteLine($"Покемон: {pokemonName} [Стихия: {elementType}]");
|
||||||
|
Console.WriteLine("****************************************");
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "lab-01", "lab-01\lab-01.csproj", "{8F039FAA-E133-4125-B0C6-FDF010EF0DF7}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{8F039FAA-E133-4125-B0C6-FDF010EF0DF7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{8F039FAA-E133-4125-B0C6-FDF010EF0DF7}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{8F039FAA-E133-4125-B0C6-FDF010EF0DF7}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{8F039FAA-E133-4125-B0C6-FDF010EF0DF7}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
/*
|
||||||
|
string pokemonName = "Чармандер";
|
||||||
|
string elementType = "Огонь";
|
||||||
|
int level = 1;
|
||||||
|
int hp = 95;
|
||||||
|
|
||||||
|
Console.WriteLine($"=== БАЗА ДАННЫХ ПОКЕМОНОВ === \nПокемон: {pokemonName}\nСтихия: {elementType}\nУровень: {level} | HP:{hp}");
|
||||||
|
*/
|
||||||
|
//zad 2
|
||||||
|
string trainerName = Console.ReadLine();
|
||||||
|
string pokemonName = Console.ReadLine();
|
||||||
|
string elementType = Console.ReadLine();
|
||||||
|
string regionName = Console.ReadLine();
|
||||||
|
|
||||||
|
Console.WriteLine($"Введите имя тренера: {trainerName}");
|
||||||
|
Console.WriteLine($"Введите имя покемона: {pokemonName}");
|
||||||
|
Console.WriteLine($"Введите стихию: {elementType}");
|
||||||
|
Console.WriteLine($"Введите регион: {regionName}");
|
||||||
|
Console.WriteLine("");
|
||||||
|
Console.WriteLine("****************************************");
|
||||||
|
Console.WriteLine("ПАСПОРТ ПОКЕМОНА");
|
||||||
|
Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})");
|
||||||
|
Console.WriteLine($"Покемон: {pokemonName} [Стихия: {elementType}]");
|
||||||
|
Console.WriteLine("****************************************");
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>net10.0</TargetFramework>
|
||||||
|
<RootNamespace>lab_01</RootNamespace>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
Reference in New Issue
Block a user