1 лаба

This commit is contained in:
328p
2026-09-03 15:58:03 +03:00
parent 8af4055b0a
commit db64c02dd0
+37
View File
@@ -0,0 +1,37 @@
using System;
class Program {
static void Main() {
//Задание 1 - Объявление переменных и статический вывод данных
//string pokemonName = "Чармандер";
//string elementType = "Огонь";
//int level = 1;
//int hp = 95;
//Console.WriteLine($"=== БАЗА ДАННЫХ ПОКЕМОНОВ ===");
//Console.WriteLine($"Покемон: {pokemonName}");
//Console.WriteLine($"Стихия: {elementType}");
//Console.WriteLine($"Уровень: {level} | HP: {hp}");
//Console.ReadLine();
//Задание 2 - Интерактивный ввод и динамическое формирование документов
Console.WriteLine("Введите имя тренера:");
string trainerName = Console.ReadLine();
Console.WriteLine("Введите имя покемона:");
string pokemonName = Console.ReadLine();
Console.WriteLine("Введите стихию:");
string elementType = Console.ReadLine();
Console.WriteLine("Введите регион:");
string regionName = Console.ReadLine();
Console.WriteLine("****************************************");
Console.WriteLine("ПАСПОРТ ПОКЕМОНА");
Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})");
Console.WriteLine($"Покемон: {pokemonName} [Стихия: {elementType}]");
Console.WriteLine("****************************************");
}
}