From 83d7247c1377594285c8b2c1af84fc4c1e69bfb0 Mon Sep 17 00:00:00 2001 From: Grishina Date: Mon, 18 Nov 2024 09:33:55 +0400 Subject: [PATCH] 123 --- Задание 1/Задание 1.sln | 31 ++++ Задание 1/Задание 1/FileName.c | 95 ++++++++++++ .../Задание 1/Задание 1.vcxproj | 135 ++++++++++++++++++ .../Задание 1.vcxproj.filters | 22 +++ 4 files changed, 283 insertions(+) create mode 100644 Задание 1/Задание 1.sln create mode 100644 Задание 1/Задание 1/FileName.c create mode 100644 Задание 1/Задание 1/Задание 1.vcxproj create mode 100644 Задание 1/Задание 1/Задание 1.vcxproj.filters diff --git a/Задание 1/Задание 1.sln b/Задание 1/Задание 1.sln new file mode 100644 index 0000000..af9ab05 --- /dev/null +++ b/Задание 1/Задание 1.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35208.52 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Задание 1", "Задание 1\Задание 1.vcxproj", "{33E59517-4E22-4D55-87AE-8E98B7348281}" +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 + {33E59517-4E22-4D55-87AE-8E98B7348281}.Debug|x64.ActiveCfg = Debug|x64 + {33E59517-4E22-4D55-87AE-8E98B7348281}.Debug|x64.Build.0 = Debug|x64 + {33E59517-4E22-4D55-87AE-8E98B7348281}.Debug|x86.ActiveCfg = Debug|Win32 + {33E59517-4E22-4D55-87AE-8E98B7348281}.Debug|x86.Build.0 = Debug|Win32 + {33E59517-4E22-4D55-87AE-8E98B7348281}.Release|x64.ActiveCfg = Release|x64 + {33E59517-4E22-4D55-87AE-8E98B7348281}.Release|x64.Build.0 = Release|x64 + {33E59517-4E22-4D55-87AE-8E98B7348281}.Release|x86.ActiveCfg = Release|Win32 + {33E59517-4E22-4D55-87AE-8E98B7348281}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {9AD79E72-0E0A-4F01-86BB-50E629C3E058} + EndGlobalSection +EndGlobal diff --git a/Задание 1/Задание 1/FileName.c b/Задание 1/Задание 1/FileName.c new file mode 100644 index 0000000..3c9b226 --- /dev/null +++ b/Задание 1/Задание 1/FileName.c @@ -0,0 +1,95 @@ +#include +#include +//bpvtytybt +void Task1() { + printf("Task1() START\n"); + int N; + + printf("n= "); + scanf_s("%d", &N); + + int M; + + printf("m= "); + scanf_s("%d", &M); + + + int i, j; + + i = 1; + do { + j = 1; + do { + printf("%d ", i * 10 + j); + j++; + } while (j <= M); + printf("\n"); + i++; + } while (i <= N); + printf("Task1() FINISH\n"); +} + +void Task2() { + printf("Task2() START\n"); + int N = 10; + int M = 10; + int i, j; + + i = 1; + do { + j = 1; + do { + printf(" %d", i * j); + j++; + } while (j <= M); + printf("\n"); + i++; + } while (i <= N); + printf("Task2() FINISH\n"); +} + +void Task3() { + printf("Task3() START\n"); + int n, i, j; + + printf(" : "); + scanf_s("%d", &n); + for (i = n; i >= 1; i--) { + + for (j = 0; j < i; j++) { + printf("%d ", i); + } + printf("\n"); + } + printf("Task3() FINISH\n"); +} + +void main() { + SetConsoleCP(1251); + SetConsoleOutputCP(1251); + int n = -1; + do { + printf("\n"); + printf("\n"); + printf(" :\n"); + printf("1: 1 (i * 10 + j) \n"); + printf("2: 2 ( ) \n"); + printf("3: 3 ( ) \n"); + printf("\n"); + printf("0: \n"); + + scanf_s("%d", &n); + + switch (n) { + case 1: + Task1(); + break; + case 2: + Task2(); + break; + case 3: + Task3(); + break; + } + } while (n != 0); +} \ No newline at end of file diff --git a/Задание 1/Задание 1/Задание 1.vcxproj b/Задание 1/Задание 1/Задание 1.vcxproj new file mode 100644 index 0000000..3ebef66 --- /dev/null +++ b/Задание 1/Задание 1/Задание 1.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {33e59517-4e22-4d55-87ae-8e98b7348281} + Задание1 + 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/Задание 1/Задание 1/Задание 1.vcxproj.filters b/Задание 1/Задание 1/Задание 1.vcxproj.filters new file mode 100644 index 0000000..f768a36 --- /dev/null +++ b/Задание 1/Задание 1/Задание 1.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {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