From 289cc058d10e50a185ffe5f873a52072352cab43 Mon Sep 17 00:00:00 2001 From: Rulet13 Date: Tue, 8 Sep 2026 08:47:07 +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/lab-02=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/lab-02/lab2_1.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 works/lab-02/lab2_1.cs diff --git a/works/lab-02/lab2_1.cs b/works/lab-02/lab2_1.cs new file mode 100644 index 0000000..99020c6 --- /dev/null +++ b/works/lab-02/lab2_1.cs @@ -0,0 +1,16 @@ +using System; + +public class lab2 +{ + public static void Main() + { + int pokemonBaseAttack, pokemonLevel; + Console.WriteLine("=== Прокачка покемона ==="); + Console.Write("Введите значение базовой атаки: "); + Console.WriteLine(pokemonBaseAttack = int.Parse(Console.ReadLine())); + Console.Write("Введите количество полученных уровней: "); + Console.WriteLine(pokemonLevel = int.Parse(Console.ReadLine())); + Console.WriteLine($"Итоговая атака покемона = {pokemonBaseAttack + (pokemonLevel * 5)} (Базовая атака + (Уровни × 5))"); + + } +}