generated from admin/template
feat: Выполнена Лабораторная работа №4
This commit is contained in:
@@ -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,16 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{73016738-CEDA-412E-9987-1C068AD114F0}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{73016738-CEDA-412E-9987-1C068AD114F0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{73016738-CEDA-412E-9987-1C068AD114F0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{73016738-CEDA-412E-9987-1C068AD114F0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{73016738-CEDA-412E-9987-1C068AD114F0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,8 @@
|
||||
while(true){int f = int.Parse(Console.ReadLine());
|
||||
if (f <= 0)
|
||||
Console.Write("0");
|
||||
else if (f <= 5)
|
||||
Console.Write("5");
|
||||
else
|
||||
Console.Write("6");
|
||||
}
|
||||
Reference in New Issue
Block a user