add c lab

This commit is contained in:
IliyaSomoilov
2026-09-10 12:04:19 +03:00
parent a8bcb9c24a
commit d5a2eedc77
38 changed files with 62 additions and 0 deletions
+27
View File
@@ -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("****************************************");
+11
View File
@@ -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>