This commit is contained in:
kosios.obsi
2026-09-05 21:44:36 +03:00
parent 8b5b80e9d5
commit 0d1c43039a
26 changed files with 226 additions and 18 deletions
+37
View File
@@ -0,0 +1,37 @@
# Лабораторная работа №1
* **Студент:** [Раджабов Амирхан Исламович]
* **Вариант / Карточка:** [Введение в язык C#. Переменные, базовые типы данных и консольный ввод/вывод информации]
---
## Ключевой код
```csharp
//task 1
//string pokemonName = "Чармандер";
//string elementType = "Огонь";
//int level = 1;
//int hp = 95;
//Console.WriteLine($"=== БАЗА ДАННЫХ ПОКЕМОНОВ === \nПокемон: {pokemonName}\nСтихия: {elementType}\nУровень: {level} | HP:{hp}");
//task 2
string trainerName = Console.ReadLine();
string pokemonName = Console.ReadLine();
string elementType = Console.ReadLine();
string regionName = Console.ReadLine();
Console.WriteLine($"Введите имя тренера: {trainerName}");
Console.WriteLine($"Введите имя покемона: {pokemonName}");
Console.WriteLine($"Введите стихию: {elementType}");
Console.WriteLine($"Введите регион: {regionName}");
Console.WriteLine("");
Console.WriteLine("****************************************");
Console.WriteLine("ПАСПОРТ ПОКЕМОНА");
Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})");
Console.WriteLine($"Покемон: {pokemonName} [Стихия: {elementType}]");
Console.WriteLine("****************************************");