generated from admin/template
Обновить works/lab-02/Readme.md
This commit is contained in:
+19
-1
@@ -7,4 +7,22 @@
|
|||||||
|
|
||||||
## Ключевой код
|
## Ключевой код
|
||||||
```csharp
|
```csharp
|
||||||
// Самая важная часть реализации (методы, структуры, логика)
|
|
||||||
|
|
||||||
|
//ЗАДАНИЕ 1
|
||||||
|
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))");
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user