generated from admin/template
Задания из урока 1 и стадии 1
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
|
||||
class Program {
|
||||
|
||||
static void Main()
|
||||
{
|
||||
//ЗАДАНИЕ 1
|
||||
//string pokemonName = "Пикачу";
|
||||
//string elementType = "Электричество";
|
||||
//int level = 1;
|
||||
//int hp = 175;
|
||||
|
||||
//Console.WriteLine($"=== БАЗА ДАННЫХ ПОКЕМОНОВ ===");
|
||||
//Console.WriteLine($"Покемон: {pokemonName}");
|
||||
//Console.WriteLine($"Элемент: {elementType}");
|
||||
//Console.WriteLine($"Уровень: {level}");
|
||||
//Console.WriteLine($"Хп: {hp}");
|
||||
|
||||
|
||||
Console.Write("Введите имя тренера?\n");
|
||||
string trainerName = Console.ReadLine();
|
||||
|
||||
Console.Write("Как зовут покемона?\n");
|
||||
string pokemonName = Console.ReadLine();
|
||||
|
||||
Console.Write("Какой элемент у покемона?\n");
|
||||
string elementType = Console.ReadLine();
|
||||
|
||||
Console.Write("Из какого региона покемон?\n");
|
||||
string regionName = Console.ReadLine();
|
||||
|
||||
Console.WriteLine("========================================");
|
||||
Console.WriteLine(" ПАСПОРТ ПОКЕМОНА ");
|
||||
|
||||
|
||||
|
||||
Console.WriteLine($"Тренер: {trainerName}");
|
||||
Console.WriteLine($"Покемон:{pokemonName}");
|
||||
Console.WriteLine($"Стихия: {elementType}");
|
||||
Console.WriteLine($"Регион: {regionName}");
|
||||
|
||||
Console.WriteLine("========================================");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user