From b8c06c7b310046bc4806fed778ecdfc6681ec650 Mon Sep 17 00:00:00 2001 From: 328p <328p@BTK.MAIN> Date: Thu, 3 Sep 2026 16:24:17 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9B=D0=B0=D0=B1=D0=B0=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lab01.txt | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 lab01.txt diff --git a/lab01.txt b/lab01.txt new file mode 100644 index 0000000..0b32f5b --- /dev/null +++ b/lab01.txt @@ -0,0 +1,31 @@ +using System; + +class Program { + static void Main() { + string pokemonName ="Charmander"; + string elementType = "Fire"; + int level = 1; + int hp = 95; + Console.WriteLine($"===Database== \n Pokemon: {pokemonName} \n Element: {elementType} \n Level: {level}| HP: {hp}"); + + } +} + +using System; + +public class Test +{ + public static void Main() + { + Console.Write("Введите имя тренера:\n"); + string trainerName = Console.ReadLine() ; + Console.Write("Введите имя покемона:\n"); + string pokemonName = Console.ReadLine(); + Console.Write("Введите стихию:\n"); + string elementType = Console.ReadLine(); + Console.Write("Введите регион:\n"); + string regionName = Console.ReadLine(); + Console.WriteLine($"****************************************\n ПАСПОРТ ПОКЕМОНА \n Тренер: {trainerName} (Регион: {regionName})\n Покемон: {pokemonName} [ Стихия: {elementType}] \n**************************************** "); + + } +}