Загрузить файлы в «works/c/lab1»

This commit is contained in:
2026-09-21 12:51:42 +00:00
parent c4a6aa9ba2
commit a756b775aa
5 changed files with 133 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
namespace ConsoleApp1;
public class ex1
{
static void Main(string[] args)
{
string pokemon1Name = "Пикачу";
int pokemon1Hp = 50;
int pokemon1Attack = 12;
string pokemon2Name = "Булбазавар";
int pokemon2Hp = 55;
int pokemon2Attack = 10;
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})");
}
}