3 лаба

This commit is contained in:
IliyaSomoilov
2026-09-09 11:25:33 +03:00
parent a4cb1570b4
commit 9f75c257fc
+28
View File
@@ -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})");
}
}