add c lab
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
//task 1
|
||||
|
||||
//string pokemonName = "Чармандер";
|
||||
//string elementType = "Огонь";
|
||||
//int level = 1;
|
||||
//int hp = 95;
|
||||
|
||||
//Console.WriteLine($"=== БАЗА ДАННЫХ ПОКЕМОНОВ === \nПокемон: {pokemonName}\nСтихия: {elementType}\nУровень: {level} | HP:{hp}");
|
||||
|
||||
//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,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<RootNamespace>lab_01</RootNamespace>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user