generated from admin/template
доработка оформления
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
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("****************************************");
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user