коммит хурма

This commit is contained in:
2026-09-08 12:05:04 +03:00
parent 3bcb8fcdf0
commit a5ae771a82
3 changed files with 49 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "hurma", "hurma\hurma.csproj", "{FDC5F4F7-74F1-485B-B346-C915B535A27A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{FDC5F4F7-74F1-485B-B346-C915B535A27A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FDC5F4F7-74F1-485B-B346-C915B535A27A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FDC5F4F7-74F1-485B-B346-C915B535A27A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FDC5F4F7-74F1-485B-B346-C915B535A27A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
+23
View File
@@ -0,0 +1,23 @@
namespace hurma;
class Program
{
static void Main(string[] args)
{
//Console.WriteLine("=== Прокачка покемона ===");
//Console.WriteLine("Введите базовое значение атаки покемона");
//int attack = int.Parse(Console.ReadLine());
//Console.WriteLine("Количество полученных уровней:");
//int levels = int.Parse(Console.ReadLine());
//int finalAttack = attack + (levels * 5);
//Console.WriteLine("Итоговое значение атаки:");
int balance = 1500;
int healPotion = 200;
Console.WriteLine($"Текущий баланс {balance}");
Console.WriteLine($"Введите кол-во приобритаемых зелий");
int purchase = healPotion * int.Parse(Console.ReadLine());
balance -= purchase;
Console.WriteLine($"Общая стоймость покупки {purchase} Остаток средств на балансе {balance}");
}
}
+10
View File
@@ -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>