Загрузить файлы в «works/c#/lab1»

This commit is contained in:
2026-09-24 08:21:18 +00:00
parent cde7a20f2a
commit f920140134
+36
View File
@@ -0,0 +1,36 @@
using System;
namespace LaboratoryWork1
{
internal class Program
{
static void Main(string[] args)
{
string pokemonName = "Чармандер";
string elementType = "Огонь";
int level = 1;
int hp = 95;
Console.WriteLine("=== БАЗА ДАННЫХ ПОКЕМОНОВ ===");
Console.WriteLine($"Покемон: {pokemonName}");
Console.WriteLine($"Стихия: {elementType}");
Console.WriteLine($"Уровень: {level} | HP: {hp}");
Console.WriteLine();
Console.Write("Введите имя тренера: ");
string trainerName = Console.ReadLine();
Console.Write("Введите имя покемона: ");
pokemonName = Console.ReadLine();
Console.Write("Введите стихию: ");
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("****************************************");
Console.ReadKey();
}
}
}