This commit is contained in:
328p
2026-09-03 16:58:47 +03:00
parent 8ea1d9874e
commit 6a40bc4aa0
2 changed files with 29 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
using System;
class Program
{
static void Main() {
string pokemonName = "Чармандер";
string elementType = "Огонь";
int level = 1;
int hp = 95;
Console.WriteLine($"=== БАЗА ДАННЫХ ПОКЕМОНОВ ===\n Покемон: {pokemonName}\n Стихия: {elementType}\n Уровень: {level} | HP: {hp}");
}
}
+16
View File
@@ -0,0 +1,16 @@
using System;
class Program
{
static void Main() {
Console.Write("Введите имя тренера ");
string trainerName = Console.ReadLine();
Console.Write("Введите имя покемона ");
string pokemonName = Console.ReadLine();
Console.Write("Введите стихию ");
string elementType = Console.ReadLine();
Console.Write("Введите регион ");
string region = Console.ReadLine();
Console.WriteLine($"ПАСПОРТ ПОКЕМОНА\nТренер: {trainerName}(Регион: {region})\nПокемон: {pokemonName} [Стихия: {elementType}]");
}
}