generated from admin/template
Загрузить файлы в «works/lab-02»
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
|
||||
class Program {
|
||||
static void Main() {
|
||||
Console.OutputEncoding = System.Text.Encoding.UTF8;
|
||||
Console.InputEncoding = System.Text.Encoding.UTF8;
|
||||
Console.WriteLine("Вашего покемона атаковали!");
|
||||
Console.WriteLine("Введите сколько у него осталось здоровье! (максимум 50)");
|
||||
int currentHp = int.Parse(Console.ReadLine());
|
||||
if (currentHp <= 0)
|
||||
{
|
||||
Console.WriteLine("Покемон потерял сознание! Верните его в покебол.");
|
||||
}
|
||||
if (currentHp > 1 && currentHp < 21)
|
||||
{
|
||||
Console.WriteLine("Критическое состояние! Срочно используйте зелье!");
|
||||
}
|
||||
if (currentHp > 20 && currentHp < 50)
|
||||
{
|
||||
Console.WriteLine("Покемон ранен, будьте осторожны.");
|
||||
}
|
||||
if (currentHp >= 50)
|
||||
{
|
||||
Console.WriteLine("Покемон полон сил и готов к бою!");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user