From 55d6588ecf2486ece7475a4ab6d77572435a8414 Mon Sep 17 00:00:00 2001
From: My Name
Date: Wed, 6 Nov 2024 13:40:44 +0400
Subject: [PATCH] first commit
---
Project2/Project2.sln | 31 +++++
Project2/Project2/Project2.vcxproj | 147 +++++++++++++++++++++
Project2/Project2/Project2.vcxproj.filters | 22 +++
Project2/Project2/Source.cpp | 86 ++++++++++++
4 files changed, 286 insertions(+)
create mode 100644 Project2/Project2.sln
create mode 100644 Project2/Project2/Project2.vcxproj
create mode 100644 Project2/Project2/Project2.vcxproj.filters
create mode 100644 Project2/Project2/Source.cpp
diff --git a/Project2/Project2.sln b/Project2/Project2.sln
new file mode 100644
index 0000000..51c2cc8
--- /dev/null
+++ b/Project2/Project2.sln
@@ -0,0 +1,31 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.30907.101
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Project2", "Project2\Project2.vcxproj", "{4F3F0D26-B812-4B29-9F42-F1937ECBEC4A}"
+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
+ {4F3F0D26-B812-4B29-9F42-F1937ECBEC4A}.Debug|x64.ActiveCfg = Debug|x64
+ {4F3F0D26-B812-4B29-9F42-F1937ECBEC4A}.Debug|x64.Build.0 = Debug|x64
+ {4F3F0D26-B812-4B29-9F42-F1937ECBEC4A}.Debug|x86.ActiveCfg = Debug|Win32
+ {4F3F0D26-B812-4B29-9F42-F1937ECBEC4A}.Debug|x86.Build.0 = Debug|Win32
+ {4F3F0D26-B812-4B29-9F42-F1937ECBEC4A}.Release|x64.ActiveCfg = Release|x64
+ {4F3F0D26-B812-4B29-9F42-F1937ECBEC4A}.Release|x64.Build.0 = Release|x64
+ {4F3F0D26-B812-4B29-9F42-F1937ECBEC4A}.Release|x86.ActiveCfg = Release|Win32
+ {4F3F0D26-B812-4B29-9F42-F1937ECBEC4A}.Release|x86.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {99392C84-55A2-4D49-AB09-EB5E1A4D4895}
+ EndGlobalSection
+EndGlobal
diff --git a/Project2/Project2/Project2.vcxproj b/Project2/Project2/Project2.vcxproj
new file mode 100644
index 0000000..85ff37d
--- /dev/null
+++ b/Project2/Project2/Project2.vcxproj
@@ -0,0 +1,147 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ x64
+
+
+
+ 16.0
+ Win32Proj
+ {4f3f0d26-b812-4b29-9f42-f1937ecbec4a}
+ Project2
+ 10.0
+
+
+
+ Application
+ true
+ v142
+ Unicode
+
+
+ Application
+ false
+ v142
+ true
+ Unicode
+
+
+ Application
+ true
+ v142
+ Unicode
+
+
+ Application
+ false
+ v142
+ true
+ Unicode
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+
+
+ false
+
+
+ true
+
+
+ false
+
+
+
+ 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/Project2/Project2/Project2.vcxproj.filters b/Project2/Project2/Project2.vcxproj.filters
new file mode 100644
index 0000000..ef66db6
--- /dev/null
+++ b/Project2/Project2/Project2.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
diff --git a/Project2/Project2/Source.cpp b/Project2/Project2/Source.cpp
new file mode 100644
index 0000000..ffdeeb6
--- /dev/null
+++ b/Project2/Project2/Source.cpp
@@ -0,0 +1,86 @@
+#include
+#include
+
+void Task1() {
+ printf("Task1() START\n");
+
+ int n, m;
+
+ printf("n, m = \n");
+ scanf_s("%d%d", &n, &m);
+
+ if (n > 9 || m > 9) {
+ printf(" n m 9.\n");
+ return;
+ }
+
+ int i = 1;
+ do {
+ int 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 i = 1;
+ do {
+ int j = 1;
+ do {
+ printf("%d ", j * i);
+ j++;
+ } while (j <= 10);
+ printf("\n");
+ i++;
+
+ } while (i <= 10);
+
+ printf("Task2() FINISH\n");
+}
+
+void Task3() {
+ printf("Task3() START\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;
+ }
+
+ } while (n != 0);
+}
+