From 3dc67ee7d7e1c3f49cd1239766d2f7beee336c91 Mon Sep 17 00:00:00 2001 From: = <=> Date: Thu, 1 Oct 2026 13:23:31 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B2=D1=8B=D0=B9=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BC=D0=BC=D0=B8=D1=82:=20=D0=B4=D0=BE=D0=B1=D0=B0?= =?UTF-8?q?=D0=B2=D0=BB=D0=B5=D0=BD=D1=8B=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B?= =?UTF-8?q?=20=D0=BF=D1=80=D0=BE=D0=B5=D0=BA=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lab1/lab1.md | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 lab1/lab1.md diff --git a/lab1/lab1.md b/lab1/lab1.md new file mode 100644 index 0000000..139ed61 --- /dev/null +++ b/lab1/lab1.md @@ -0,0 +1,56 @@ +# ЛАБОРАТОРНАЯ РАБОТА №1 +## КОДЫ ИЗ C# + +``` +static void Main(string[] args) + { + int hp = 60; + int number = 25; + double height = 0.4; + double weight = 6.0; + int attack2Damage = 20; + int reateatCost = 1; + + Console.Write("Введте стадия развития: "); + string stage = Console.ReadLine(); + Console.Write("Введите имя покемона: "); + string name = Console.ReadLine(); + Console.Write("Ввеите вид покемона: "); + string category = Console.ReadLine(); + Console.Write("Введите название первой атакии: "); + string attack1Name = Console.ReadLine(); + Console.Write("Введите эффект первой атаки: "); + string attack1Desc = Console.ReadLine(); + Console.Write("Введите название второй атаки: "); + string attack2Name = Console.ReadLine(); + Console.Write("Введите эффект второй атаки: "); + string attack2Desc = Console.ReadLine(); + Console.Write("Введите уязвимость: "); + string weakness = Console.ReadLine(); + Console.Write("Введите устойчивость: "); + string resisstance = Console.ReadLine(); + + Console.Clear(); + Thread.Sleep(1000); + + Console.WriteLine($@"====================================================================== +{stage} {name,-55}ОЖ: {hp} [⚡] +----------------------------------------------------------------------"); + Thread.Sleep(1000); + Console.WriteLine($@"№ {number} | Вид: {category} | Рост: {height} | Вес: {weight} +----------------------------------------------------------------------"); + Thread.Sleep(1000); + Console.WriteLine($@"[Атака 1] {attack1Name} +Эффект: {attack1Desc}"); + + Thread.Sleep(1000); + + Console.WriteLine($@"[Атака 2] {attack1Desc,-40} Урон: {attack2Damage}+ +Эффект: {attack2Desc} +----------------------------------------------------------------------"); + Thread.Sleep(1000); + Console.WriteLine($@"Слабость: {weakness} +Устойчивость: {resisstance} +Отступление: {resisstance}"); + } +``` \ No newline at end of file