feat: выполнена лабораторная работа 2, внесены корректировки в лр 1

This commit is contained in:
2026-09-04 11:46:17 +03:00
parent 15933d4d9b
commit 49892687de
4 changed files with 175 additions and 9 deletions
+3 -3
View File
@@ -28,11 +28,11 @@ namespace lesson1
//задание 1.2
Console.Write("Введите имя тренера: ");
var trainerName = Console.ReadLine();
Console.Write("Введите имя покемона: ");
Console.Write("\nВведите имя покемона: ");
var pokemonName = Console.ReadLine();
Console.Write("Введите стихию: ");
Console.Write("\nВведите стихию: ");
var elementType = Console.ReadLine();
Console.Write("Введите регион: ");
Console.Write("\nВведите регион: ");
var regionName = Console.ReadLine();
Console.WriteLine();
Console.WriteLine("****************************************");
+34
View File
@@ -0,0 +1,34 @@
using System;
internal class Program
{
static void Main(string[] args)
{
//задание 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}");
//задание 1.2
Console.Write("Введите имя тренера: ");
var trainerName = Console.ReadLine();
Console.Write("\nВведите имя покемона: ");
var pokemonName = Console.ReadLine();
Console.Write("\nВведите стихию: ");
var elementType = Console.ReadLine();
Console.Write("\nВведите регион: ");
var regionName = Console.ReadLine();
Console.WriteLine();
Console.WriteLine("****************************************");
Console.WriteLine("ПАСПОРТ ПОКЕМОНА");
Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})");
Console.WriteLine($"Покемон: {pokemonName} [Стихия: {elementType}]");
Console.WriteLine("****************************************");
}
}