Files
prog-radzh/works/lab-02/ConsoleApp1/Program.cs
T
2026-09-04 13:32:17 +03:00

62 lines
1.6 KiB
C#

/* 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;
}