This commit is contained in:
kosios.obsi
2026-09-05 21:44:36 +03:00
parent 8b5b80e9d5
commit 0d1c43039a
26 changed files with 226 additions and 18 deletions
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>
@@ -0,0 +1,62 @@
/* less-1.1
int damage = int.Parse(Console.ReadLine());
int lvl = int.Parse(Console.ReadLine());
int totalDamage = damage + (lvl * 5);
Console.WriteLine($"=== Прокачка покемона === \n ---- {totalDamage} ----");
*/
/* less-1.2
int balanceTran = 1500;
int potionCost = 200;
int amountPotion = int.Parse(Console.ReadLine());
int result = amountPotion * potionCost;
Console.WriteLine(result);
*/
/* less 2.1
int hp = int.Parse(Console.ReadLine());
if (hp <= 0)
{
Console.WriteLine("Покемон потерял сознание! Верните его в покебол.");
}
else if (1 <= hp && hp <= 20)
{
Console.WriteLine("Критическое состояние! Срочно используйте зелье!");
}
else if (21 <= hp && hp <= 50)
{
Console.WriteLine("Покемон ранен, будьте осторожны");
}
else
{
Console.WriteLine("Покемон полон сил и готов к бою!");
}
*/
Console.WriteLine("1: \n2: \n3: \n4");
int num = int.Parse(Console.ReadLine());
switch(num)
{
case 1 :
Console.WriteLine("Покемон наносит быстрый удар");
break;
case 2 :
Console.WriteLine("Вы открыли сумку и применили Зелье Лечения.");
break;
case 3 :
Console.WriteLine("Вы отозвали покемона и выпустили нового!");
break;
case 4 :
Console.WriteLine("Вы успешно сбежали из боя!");
break;
default:
Console.WriteLine("Неизвестная команда! Вы пропустили ход.");
break;
}