From 15ae7b1d72378d26cdadcf23ad8db5042a8c73bf Mon Sep 17 00:00:00 2001 From: Zodiak 303 Date: Mon, 18 Nov 2024 23:38:10 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B2=D1=8B=D0=B9=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BC=D0=BC=D0=B8=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Лаба3.1/Source.c | 27 +++++ Лаба3.1/Лаба3.1.sln | 31 ++++++ Лаба3.1/Лаба3.1.vcxproj | 136 ++++++++++++++++++++++++ Лаба3.1/Лаба3.1.vcxproj.filters | 25 +++++ 4 files changed, 219 insertions(+) create mode 100644 Лаба3.1/Source.c create mode 100644 Лаба3.1/Лаба3.1.sln create mode 100644 Лаба3.1/Лаба3.1.vcxproj create mode 100644 Лаба3.1/Лаба3.1.vcxproj.filters diff --git a/Лаба3.1/Source.c b/Лаба3.1/Source.c new file mode 100644 index 0000000..893b260 --- /dev/null +++ b/Лаба3.1/Source.c @@ -0,0 +1,27 @@ +#include +#include + +void main() +{ + int odin, dwa, max, min; + + SetConsoleCP(1251); + SetConsoleOutputCP(1251); + + printf(" - "); + scanf_s("%d", &odin); + printf(" - "); + scanf_s("%d", &dwa); + + if (odin > dwa) { + min = dwa; + max = odin; + } + else { + min = odin; + max = dwa; + } + + printf(" - %d\n", max); + printf(" - %d", min); +} \ No newline at end of file diff --git a/Лаба3.1/Лаба3.1.sln b/Лаба3.1/Лаба3.1.sln new file mode 100644 index 0000000..c0450f2 --- /dev/null +++ b/Лаба3.1/Лаба3.1.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35222.181 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Лаба3.1", "Лаба3.1.vcxproj", "{3EADE4B9-0583-40D8-B404-EA2BDA618857}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3EADE4B9-0583-40D8-B404-EA2BDA618857}.Debug|x64.ActiveCfg = Debug|x64 + {3EADE4B9-0583-40D8-B404-EA2BDA618857}.Debug|x64.Build.0 = Debug|x64 + {3EADE4B9-0583-40D8-B404-EA2BDA618857}.Debug|x86.ActiveCfg = Debug|Win32 + {3EADE4B9-0583-40D8-B404-EA2BDA618857}.Debug|x86.Build.0 = Debug|Win32 + {3EADE4B9-0583-40D8-B404-EA2BDA618857}.Release|x64.ActiveCfg = Release|x64 + {3EADE4B9-0583-40D8-B404-EA2BDA618857}.Release|x64.Build.0 = Release|x64 + {3EADE4B9-0583-40D8-B404-EA2BDA618857}.Release|x86.ActiveCfg = Release|Win32 + {3EADE4B9-0583-40D8-B404-EA2BDA618857}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {81A48080-6CE2-4861-96F6-8E401DEF6AB5} + EndGlobalSection +EndGlobal diff --git a/Лаба3.1/Лаба3.1.vcxproj b/Лаба3.1/Лаба3.1.vcxproj new file mode 100644 index 0000000..daab166 --- /dev/null +++ b/Лаба3.1/Лаба3.1.vcxproj @@ -0,0 +1,136 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {3eade4b9-0583-40d8-b404-ea2bda618857} + Лаба31 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + \ No newline at end of file diff --git a/Лаба3.1/Лаба3.1.vcxproj.filters b/Лаба3.1/Лаба3.1.vcxproj.filters new file mode 100644 index 0000000..91eab35 --- /dev/null +++ b/Лаба3.1/Лаба3.1.vcxproj.filters @@ -0,0 +1,25 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Исходные файлы + + + Исходные файлы + + + \ No newline at end of file