generated from admin/template
1 laba+1 stage
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
|
||||
class Program {
|
||||
static void Main()
|
||||
{
|
||||
//ЗАДАНИЕ 1
|
||||
//string pokemonName ="Charmander";
|
||||
//string elementType ="Fire";
|
||||
//int level = 1;
|
||||
// int hp = 95;
|
||||
|
||||
//Console.WriteLine("===Pokemon DataBase=== ");
|
||||
//Console.WriteLine( $" Pokemon:{pokemonName}");
|
||||
//Console.WriteLine( $" Element:{elementType}");
|
||||
//Console.WriteLine( $" level:{level} | HP: {hp}");
|
||||
//Console.ReadLine();
|
||||
|
||||
//ЗАДАНИЕ 2
|
||||
|
||||
Console.Write ("Enter the trainers name: \n ");
|
||||
string trainerName = Console.ReadLine();
|
||||
Console.Write ("Enter the Pokemons name: \n ");
|
||||
string pokemonName = Console.ReadLine();
|
||||
Console.Write ("Enter the region: \n ");
|
||||
string region = Console.ReadLine();
|
||||
Console.Write ("Enter the element: \n");
|
||||
string element = Console.ReadLine();
|
||||
|
||||
Console.Write("Pokemon Pasport \nTrainer:{trainerName}(Region{region}| Pokemon{pokemonName} [Element{element}])");
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
# Лабораторная работа №1
|
||||
|
||||
* **Студент:** [ФИО]
|
||||
* **Вариант / Карточка:** [Например: #025 Pikachu]
|
||||
* **Студент:** Хорошилкина Анна Дмитриевна
|
||||
* **Вариант / Карточка:** Пикачу
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
using System;
|
||||
|
||||
public class Test
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
int hp = 60;
|
||||
int number = 25;
|
||||
double height = 0.4;
|
||||
double weight = 6.0;
|
||||
int attack2Damage = 20;
|
||||
int retreatCost = 1;
|
||||
|
||||
Console.Write ("Введите имя покемона:\n ");
|
||||
string name = Console.ReadLine();
|
||||
Console.Write ("Введите стадию развития:\n ");
|
||||
string stage = Console.ReadLine();
|
||||
Console.Write ("Введите вид покемона:\n");
|
||||
string category = Console.ReadLine();
|
||||
Console.Write ("Введите название первой атаки:\n");
|
||||
string attack1Name = Console.ReadLine();
|
||||
Console.Write ("Введите эффект первой атаки:\n");
|
||||
string attack1Desс = Console.ReadLine();
|
||||
Console.Write ("Введите название второй атаки:\n");
|
||||
string attack2Name = Console.ReadLine();
|
||||
Console.Write ("Введите эффект второй атаки:\n");
|
||||
string attack2Desc = Console.ReadLine();
|
||||
Console.Write ("Введите уязвимость:\n");
|
||||
string weakness = Console.ReadLine();
|
||||
Console.Write ("Введите устойчивость:\n");
|
||||
string resistance = Console.ReadLine();
|
||||
|
||||
Console.Clear();
|
||||
|
||||
Console.WriteLine("======================================================================");
|
||||
Console.WriteLine($"[stage] {name, -42} ОЖ:{hp}[⚡]");
|
||||
Console.WriteLine("----------------------------------------------------------------------");
|
||||
Console.WriteLine($" №25|Вид:{category} | Рост:{height} | Вес:{weight}");
|
||||
Console.WriteLine("----------------------------------------------------------------------");
|
||||
Console.WriteLine($" [Атака 1] {attack1Name} ");
|
||||
Console.WriteLine($" Эффект: {attack1Desс}");
|
||||
Console.WriteLine();
|
||||
Console.WriteLine($" [Атака 2] {attack2Name, - 42} Урон {attack2Damage}+" );
|
||||
Console.WriteLine($" Эффект: {attack2Desc}");
|
||||
Console.WriteLine("----------------------------------------------------------------------");
|
||||
Console.WriteLine($"Слабость {weakness}");
|
||||
Console.WriteLine($"Устройчивость {resistance}");
|
||||
Console.WriteLine($"Отступление {retreatCost} энергия ");
|
||||
Console.WriteLine("======================================================================");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user