generated from admin/template
выполнения первого задания второй лабы
This commit is contained in:
@@ -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}");
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user