generated from admin/template
lab-01
This commit is contained in:
BIN
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"Version": 1,
|
||||
"WorkspaceRootPath": "C:\\prog-radzh\\works\\\u0421#-lab\\lab-02\\",
|
||||
"Documents": [],
|
||||
"DocumentGroupContainers": [
|
||||
{
|
||||
"Orientation": 0,
|
||||
"VerticalTabListWidth": 256,
|
||||
"DocumentGroups": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"Version": 1,
|
||||
"WorkspaceRootPath": "C:\\prog-radzh\\works\\\u0421#-lab\\lab-02\\",
|
||||
"Documents": [
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{461029EE-A0DE-41B2-A4B9-6F336449D66F}|ConsoleApp1\\ConsoleApp1.csproj|c:\\prog-radzh\\works\\\u0441#-lab\\lab-02\\consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{461029EE-A0DE-41B2-A4B9-6F336449D66F}|ConsoleApp1\\ConsoleApp1.csproj|solutionrelative:consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
}
|
||||
],
|
||||
"DocumentGroupContainers": [
|
||||
{
|
||||
"Orientation": 0,
|
||||
"VerticalTabListWidth": 256,
|
||||
"DocumentGroups": [
|
||||
{
|
||||
"DockedWidth": 200,
|
||||
"SelectedChildIndex": 0,
|
||||
"Children": [
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 0,
|
||||
"Title": "Program.cs",
|
||||
"DocumentMoniker": "C:\\prog-radzh\\works\\\u0421#-lab\\lab-02\\ConsoleApp1\\Program.cs",
|
||||
"RelativeDocumentMoniker": "ConsoleApp1\\Program.cs",
|
||||
"ToolTip": "C:\\prog-radzh\\works\\\u0421#-lab\\lab-02\\ConsoleApp1\\Program.cs",
|
||||
"RelativeToolTip": "ConsoleApp1\\Program.cs",
|
||||
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAYAAAAuAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2026-09-05T17:59:55.612Z",
|
||||
"EditorCaption": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,62 @@
|
||||
/* less-1.1
|
||||
int damage = int.Parse(Console.ReadLine());
|
||||
int lvl = int.Parse(Console.ReadLine());
|
||||
|
||||
int totalDamage = damage + (lvl * 5);
|
||||
|
||||
Console.WriteLine($"=== Прокачка покемона === \n ---- {totalDamage} ----");
|
||||
*/
|
||||
|
||||
/* less-1.2
|
||||
int balanceTran = 1500;
|
||||
int potionCost = 200;
|
||||
|
||||
int amountPotion = int.Parse(Console.ReadLine());
|
||||
int result = amountPotion * potionCost;
|
||||
Console.WriteLine(result);
|
||||
*/
|
||||
|
||||
/* less 2.1
|
||||
int hp = int.Parse(Console.ReadLine());
|
||||
|
||||
if (hp <= 0)
|
||||
{
|
||||
Console.WriteLine("Покемон потерял сознание! Верните его в покебол.");
|
||||
}
|
||||
|
||||
else if (1 <= hp && hp <= 20)
|
||||
{
|
||||
Console.WriteLine("Критическое состояние! Срочно используйте зелье!");
|
||||
}
|
||||
else if (21 <= hp && hp <= 50)
|
||||
{
|
||||
Console.WriteLine("Покемон ранен, будьте осторожны");
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Покемон полон сил и готов к бою!");
|
||||
}
|
||||
*/
|
||||
|
||||
Console.WriteLine("1: \n2: \n3: \n4");
|
||||
|
||||
int num = int.Parse(Console.ReadLine());
|
||||
|
||||
switch(num)
|
||||
{
|
||||
case 1 :
|
||||
Console.WriteLine("Покемон наносит быстрый удар");
|
||||
break;
|
||||
case 2 :
|
||||
Console.WriteLine("Вы открыли сумку и применили Зелье Лечения.");
|
||||
break;
|
||||
case 3 :
|
||||
Console.WriteLine("Вы отозвали покемона и выпустили нового!");
|
||||
break;
|
||||
case 4 :
|
||||
Console.WriteLine("Вы успешно сбежали из боя!");
|
||||
break;
|
||||
default:
|
||||
Console.WriteLine("Неизвестная команда! Вы пропустили ход.");
|
||||
break;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{461029EE-A0DE-41B2-A4B9-6F336449D66F}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{461029EE-A0DE-41B2-A4B9-6F336449D66F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{461029EE-A0DE-41B2-A4B9-6F336449D66F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{461029EE-A0DE-41B2-A4B9-6F336449D66F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{461029EE-A0DE-41B2-A4B9-6F336449D66F}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
Reference in New Issue
Block a user