Создание отдельной папки с работами Kotlin

This commit is contained in:
2026-09-08 11:31:38 +03:00
parent 6acb6fbc5c
commit f2312f0c19
6 changed files with 0 additions and 16 deletions
+12
View File
@@ -0,0 +1,12 @@
using System;
class Program
{
static void Main() {
string pokemonName = "Чармандер";
string elementType = "Огонь";
int level = 1;
int hp = 95;
Console.WriteLine($"=== БАЗА ДАННЫХ ПОКЕМОНОВ ===\nПокемон:{pokemonName}\nСтихия{elementType}\nУровень:{level} | HP:{hp}");
}
}
+16
View File
@@ -0,0 +1,16 @@
using System;
class Program
{
static void Main() {
Console.Write("Введите имя тренера ");
string trainerName = Console.ReadLine();
Console.Write("Введите имя покемона ");
string pokemonName = Console.ReadLine();
Console.Write("Введите стихию ");
string elementType = Console.ReadLine();
Console.Write("Введите регион ");
string region = Console.ReadLine();
Console.WriteLine($"ПАСПОРТ ПОКЕМОНА\nТренер: {trainerName}(Регион: {region})\nПокемон: {pokemonName} [Стихия: {elementType}]");
}
}
+15
View File
@@ -0,0 +1,15 @@
# Лабораторная работа №1
* **Студент:** [ФИО]
* **Вариант / Карточка:** [Например: #025 Pikachu]
---
## Ключевой код
```csharp
// Самая важная часть реализации (методы, структуры, логика)
public class Card
{
public string Name { get; set; }
public int Hp { get; set; }
}
+47
View File
@@ -0,0 +1,47 @@
using System;
class Program
{
static void Main() {
Console.Write("Введите стадию развития ");
string stage = Console.ReadLine();
Console.Write("Введите имя покемона ");
string name = Console.ReadLine();
Console.Write("Введите вид покемона ");
string category = Console.ReadLine();
Console.Write("Введите название первой атаки ");
string attack1Name = Console.ReadLine();
Console.Write("Введите эффект первой атаки ");
string attack1Desc = Console.ReadLine();
Console.Write("Введите название второй атаки ");
string attack2Name = Console.ReadLine();
Console.Write("Введите эффект второй атаки ");
string attack2Desc = Console.ReadLine();
Console.Write("Введите уязвимость ");
string weakness = Console.ReadLine();
Console.Write("Введите устойчивость ");
string resistance = Console.ReadLine();
int hp = 60;
int number = 25;
double height = 0.4;
double weight = 6.0;
int attack2Damage = 20;
int retreatCost = 1;
Console.Write($"=============================================\n" +
$"[{stage}] {name}" + " " +
$"ОЖ: {hp}\n" +
$" № {number} | Вид: {category} | Рост: {height} м | Вес: {weight} кг\n" +
$"---------------------------------------------\n" +
$"[Атака 1]: {attack1Name}\n" +
$"Эффект: {attack1Desc}\n" +
$"---------------------------------------------\n" +
$"[Атака 2]: {attack2Name}\n" +
$"Эффект:{attack2Desc}\n" +
$"Урон: {attack2Damage}\n" +
$"---------------------------------------------\n" +
$"Слабость: {weakness}\n" +
$"Сопротивление: {resistance}\n" +
$"Стоимость отступления: {retreatCost}\n"+
$"=============================================");
}
}
+15
View File
@@ -0,0 +1,15 @@
# Лабораторная работа №2
* **Студент:** [ФИО]
* **Вариант / Карточка:** [Например: #025 Pikachu]
---
## Ключевой код
```csharp
// Самая важная часть реализации (методы, структуры, логика)
public class Card
{
public string Name { get; set; }
public int Hp { get; set; }
}