Лабораторная работа №1
// Задание 1 Статический вывод string pokemonName = "Чармандер"; string elementType = "Огонь"; int level = 1; int hp = 95; Console.WriteLine("=== БАЗА ДАННЫХ ПОКЕМОНОВ ==="); Console.WriteLine($"Покемон: {pokemonName}"); Console.WriteLine($"Стихия: {elementType}"); Console.WriteLine($"Уровень: {level} | HP: {hp}");
// ===== Задание 2. Интерактивный ввод ===== Console.Write("Введите имя тренера: "); string trainerName = Console.ReadLine();
Console.Write("Введите имя покемона: "); string pokemonName2 = Console.ReadLine(); Console.Write("Введите стихию: "); string elementType2 = Console.ReadLine(); Console.Write("Введите регион: "); string regionName = Console.ReadLine(); Console.WriteLine("ПАСПОРТ ПОКЕМОНА"); Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})"); Console.WriteLine($"Покемон: {pokemonName2} [Стихия: {elementType2}]");