Обновить works/charp/lab-01/Readme.md

This commit is contained in:
2026-10-15 16:59:46 +00:00
parent ac33dd29c0
commit 1faef8311c
+30 -1
View File
@@ -1 +1,30 @@
das //ex 1
string pokemoneName = "Чармандер";
string elementType = "Огонь";
int level = 1;
int hp = 95;
Console.WriteLine($"=== БАЗА ДАННЫХ ПОКЕМОНОВ ===\nПокемон: {pokemoneName}\nСтихия: {elementType}\nУровень: {level} | HP: {hp}");
//ex 2
Console.Write("Введите имя тренера: ");
string trainerName = Console.ReadLine();
Console.Write("Введите имя покемона: ");
string pokemonName = Console.ReadLine();
Console.Write("Введите стихию: ");
string elementType = Console.ReadLine();
Console.Write("Введите регион: ");
string regionName = Console.ReadLine();
Console.WriteLine(); // Пустая строка перед звездочками
Console.WriteLine("****************************************");
Console.WriteLine("ПАСПОРТ ПОКЕМОНА");
Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})");
Console.WriteLine($"Покемон: {pokemonName} [Стихия: {elementType}]");
Console.WriteLine("****************************************");
*.cs linguist-language=C#