Files

17 lines
624 B
C#

using System;
public class lab2
{
public static void Main()
{
int pokemonBaseAttack, pokemonLevel;
Console.WriteLine("=== Прокачка покемона ===");
Console.Write("Введите значение базовой атаки: ");
pokemonBaseAttack = int.Parse(Console.ReadLine());
Console.Write("Введите количество полученных уровней: ");
pokemonLevel = int.Parse(Console.ReadLine());
Console.WriteLine($"Итоговая атака покемона = {pokemonBaseAttack + (pokemonLevel * 5)} (Базовая атака + (Уровни × 5))");
}
}