generated from admin/template
1 n 2
This commit is contained in:
@@ -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}");
|
||||
}
|
||||
}
|
||||
@@ -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}]");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user