From f9201401349b495f9aa78121589c5bc65b8d2f5f Mon Sep 17 00:00:00 2001 From: anazaz Date: Thu, 24 Sep 2026 08:21:18 +0000 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20=C2=AB?= =?UTF-8?q?works/c#/lab1=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/c#/lab1/Program.cs | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 works/c#/lab1/Program.cs diff --git a/works/c#/lab1/Program.cs b/works/c#/lab1/Program.cs new file mode 100644 index 0000000..89abd3f --- /dev/null +++ b/works/c#/lab1/Program.cs @@ -0,0 +1,36 @@ +using System; + +namespace LaboratoryWork1 +{ + internal class Program + { + static void Main(string[] args) + { + 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(); + Console.Write("Введите имя тренера: "); + string trainerName = Console.ReadLine(); + Console.Write("Введите имя покемона: "); + pokemonName = Console.ReadLine(); + Console.Write("Введите стихию: "); + elementType = Console.ReadLine(); + Console.Write("Введите регион: "); + string regionName = Console.ReadLine(); + Console.WriteLine(); + Console.WriteLine("****************************************"); + Console.WriteLine("ПАСПОРТ ПОКЕМОНА"); + Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})"); + Console.WriteLine($"Покемон: {pokemonName} [Стихия: {elementType}]"); + Console.WriteLine("****************************************"); + Console.ReadKey(); + } + } +} \ No newline at end of file