generated from admin/template
Исправление оформления
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
# Лабораторная работа №1
|
||||
|
||||
* **Студент:** [Беляев Антон Сергеевич]
|
||||
* **Вариант / Карточка:** [Например: #025 Pikachu]
|
||||
|
||||
---
|
||||
|
||||
## Ключевой код
|
||||
```csharp
|
||||
|
||||
using System;
|
||||
|
||||
namespace lesson1
|
||||
{
|
||||
class lesson1
|
||||
{
|
||||
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("****************************************");
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ответ:
|
||||
|
||||
1 БЛОК 1 ЗАДАНИЕ
|
||||
=== БАЗА ДАННЫХ ПОКЕМОНОВ ===
|
||||
Покемон: Чармандер
|
||||
Стихия: Огонь
|
||||
Уровень: 1 | HP: 95
|
||||
|
||||
1 БЛОК 2 ЗАДАНИЕ
|
||||
Введите имя тренера: Эш
|
||||
Введите имя покемона: Булбазавр
|
||||
Введите стихию: Трава
|
||||
Введите регион: Канто
|
||||
****************************************
|
||||
ПАСПОРТ ПОКЕМОНА
|
||||
Тренер: Эш (Регион: Канто)
|
||||
Покемон: Булбазавр [Стихия: Трава]
|
||||
****************************************
|
||||
|
||||
Process finished with exit code 0.
|
||||
|
||||
|
||||
@@ -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", "{EBC5DA53-6234-4418-BE96-42D2151BA6EE}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{EBC5DA53-6234-4418-BE96-42D2151BA6EE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{EBC5DA53-6234-4418-BE96-42D2151BA6EE}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{EBC5DA53-6234-4418-BE96-42D2151BA6EE}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{EBC5DA53-6234-4418-BE96-42D2151BA6EE}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
|
||||
namespace lesson1
|
||||
{
|
||||
class lesson1
|
||||
{
|
||||
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("****************************************");
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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