diff --git a/works/lab-02/lab2_1.cs b/works/lab-02/lab2_1.cs new file mode 100644 index 0000000..99020c6 --- /dev/null +++ b/works/lab-02/lab2_1.cs @@ -0,0 +1,16 @@ +using System; + +public class lab2 +{ + public static void Main() + { + int pokemonBaseAttack, pokemonLevel; + Console.WriteLine("=== Прокачка покемона ==="); + Console.Write("Введите значение базовой атаки: "); + Console.WriteLine(pokemonBaseAttack = int.Parse(Console.ReadLine())); + Console.Write("Введите количество полученных уровней: "); + Console.WriteLine(pokemonLevel = int.Parse(Console.ReadLine())); + Console.WriteLine($"Итоговая атака покемона = {pokemonBaseAttack + (pokemonLevel * 5)} (Базовая атака + (Уровни × 5))"); + + } +}