Обновить works/lab-02/lab2_1.cs

This commit is contained in:
2026-09-25 10:22:45 +00:00
parent 700c36f697
commit 393ea9c65d
+2 -2
View File
@@ -7,9 +7,9 @@ public class lab2
int pokemonBaseAttack, pokemonLevel;
Console.WriteLine("=== Прокачка покемона ===");
Console.Write("Введите значение базовой атаки: ");
Console.WriteLine(pokemonBaseAttack = int.Parse(Console.ReadLine()));
pokemonBaseAttack = int.Parse(Console.ReadLine());
Console.Write("Введите количество полученных уровней: ");
Console.WriteLine(pokemonLevel = int.Parse(Console.ReadLine()));
pokemonLevel = int.Parse(Console.ReadLine());
Console.WriteLine($"Итоговая атака покемона = {pokemonBaseAttack + (pokemonLevel * 5)} (Базовая атака + (Уровни × 5))");
}