From 9f75c257fcdaeb8ea9b6f9d9c571f38b983c28ed Mon Sep 17 00:00:00 2001 From: IliyaSomoilov Date: Wed, 9 Sep 2026 11:25:33 +0300 Subject: [PATCH] =?UTF-8?q?3=20=D0=BB=D0=B0=D0=B1=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- works/lab03/ex1.cs | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 works/lab03/ex1.cs diff --git a/works/lab03/ex1.cs b/works/lab03/ex1.cs new file mode 100644 index 0000000..616af83 --- /dev/null +++ b/works/lab03/ex1.cs @@ -0,0 +1,28 @@ +namespace DefaultNamespace; + +public class ex1 +{ + static void Main(string[] args) + { + string pokemon1Name = "Пикачу"; + int pokemon1Hp = 50; + int pokemon1Attack = 12; + string pokemon2Name = "Бульбазавр"; + + int pokemon2Hp = 55; + int pokemon2Attack = 10; + //int roundNumber = 1; + Console.WriteLine("Приготовтесь!"); + for (int i =3; i >= 1; i--) + { + Console.WriteLine($"{i}..."); + } + Console.WriteLine("=== БОЙ НАЧИНАЕТСЯ ==="); + Console.WriteLine($"{pokemon1Name} (HP: {pokemon1Hp} | Атака: {pokemon1Attack}) VS {pokemon2Name} (HP: {pokemon2Hp} | Атака: {pokemon2Attack})"); + + + + + } + +}