generated from admin/template
lab-03
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
# Лабораторная работа №1
|
||||
|
||||
* **Студент:** [Раджабов Амирхан Исламович]
|
||||
* **Вариант / Карточка:** [Введение в язык C#. Переменные, базовые типы данных и консольный ввод/вывод информации]
|
||||
|
||||
---
|
||||
|
||||
### task 1
|
||||
```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
|
||||
```csharp
|
||||
//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("****************************************");
|
||||
```
|
||||
Reference in New Issue
Block a user