generated from admin/template
Delete directory 'works/lab-01'
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
<Solution>
|
|
||||||
<Project Path="ConsoleApp1/ConsoleApp1.csproj" />
|
|
||||||
</Solution>
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
# Лабораторная работа №2
|
|
||||||
|
|
||||||
* **Студент:** [Тесленко Анастасия]
|
|
||||||
* **Вариант / Карточка:** [Например: #025 Pikachu]
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Ключевой код
|
|
||||||
```csharp
|
|
||||||
fun main()
|
|
||||||
{
|
|
||||||
// Задание 1 Статический вывод
|
|
||||||
string pokemonName = "Чармандер";
|
|
||||||
string elementType = "Огонь";
|
|
||||||
int level = 1;
|
|
||||||
int hp = 95;
|
|
||||||
Console.WriteLine("=== БАЗА ДАННЫХ ПОКЕМОНОВ ===");
|
|
||||||
Console.WriteLine($"Покемон: {pokemonName}");
|
|
||||||
Console.WriteLine($"Стихия: {elementType}");
|
|
||||||
Console.WriteLine($"Уровень: {level} | HP: {hp}");
|
|
||||||
|
|
||||||
// ===== Задание 2. Интерактивный ввод =====
|
|
||||||
Console.Write("Введите имя тренера: ");
|
|
||||||
string trainerName = Console.ReadLine();
|
|
||||||
|
|
||||||
Console.Write("Введите имя покемона: ");
|
|
||||||
string pokemonName2 = Console.ReadLine();
|
|
||||||
Console.Write("Введите стихию: ");
|
|
||||||
string elementType2 = Console.ReadLine();
|
|
||||||
Console.Write("Введите регион: ");
|
|
||||||
string regionName = Console.ReadLine();
|
|
||||||
Console.WriteLine("ПАСПОРТ ПОКЕМОНА");
|
|
||||||
Console.WriteLine($"Тренер: {trainerName} (Регион: {regionName})");
|
|
||||||
Console.WriteLine($"Покемон: {pokemonName2} [Стихия: {elementType2}]");
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user