generated from admin/template
fixcode
This commit is contained in:
@@ -1,8 +1,37 @@
|
||||
int damage = int.Parse(Console.ReadLine());
|
||||
/* 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);
|
||||
*/
|
||||
|
||||
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("Покемон полон сил и готов к бою!");
|
||||
}
|
||||
Reference in New Issue
Block a user