diff --git a/works/csharp/lab-01/lab-01/lab-01.sln b/works/csharp/lab-01/lab-01/lab-01.sln new file mode 100644 index 0000000..7b8b4bd --- /dev/null +++ b/works/csharp/lab-01/lab-01/lab-01.sln @@ -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 diff --git a/works/csharp/lab-01/lab-01/lab-01/Program.cs b/works/csharp/lab-01/lab-01/lab-01/Program.cs new file mode 100644 index 0000000..e2c18b3 --- /dev/null +++ b/works/csharp/lab-01/lab-01/lab-01/Program.cs @@ -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("****************************************"); \ No newline at end of file diff --git a/works/csharp/lab-01/lab-01/lab-01/lab-01.csproj b/works/csharp/lab-01/lab-01/lab-01/lab-01.csproj new file mode 100644 index 0000000..c5a245f --- /dev/null +++ b/works/csharp/lab-01/lab-01/lab-01/lab-01.csproj @@ -0,0 +1,11 @@ + + + + Exe + net10.0 + lab_01 + enable + enable + + +