diff --git a/works/lab-02/src/lab2.cs b/works/lab-02/src/lab2.cs new file mode 100644 index 0000000..ce27858 --- /dev/null +++ b/works/lab-02/src/lab2.cs @@ -0,0 +1,17 @@ +namespace DefaultNamespace; + +public class lab2 +{ + static void Main(string[] args) + { + Console.WriteLine("=== Прокачка покемнов ==="); + Console.Write("Введите базовый урон: "); + int base_dmg = int.Parse(Console.ReadLine()); + Console.Write("Введите уровнь: "); + int lv = int.Parse(Console.ReadLine()); + int end_dmg = base_dmg + (lv * 5); + + Console.WriteLine($"Итоговая атака: {end_dmg}"); + + } +} \ No newline at end of file