diff --git a/3лаба/3лаба.sln b/3лаба/3лаба.sln new file mode 100644 index 0000000..d9b7b61 --- /dev/null +++ b/3лаба/3лаба.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}") = "3лаба", "3лаба\3лаба.vcxproj", "{05E9596B-1EAB-4638-9351-E628281E2663}" +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 + {05E9596B-1EAB-4638-9351-E628281E2663}.Debug|x64.ActiveCfg = Debug|x64 + {05E9596B-1EAB-4638-9351-E628281E2663}.Debug|x64.Build.0 = Debug|x64 + {05E9596B-1EAB-4638-9351-E628281E2663}.Debug|x86.ActiveCfg = Debug|Win32 + {05E9596B-1EAB-4638-9351-E628281E2663}.Debug|x86.Build.0 = Debug|Win32 + {05E9596B-1EAB-4638-9351-E628281E2663}.Release|x64.ActiveCfg = Release|x64 + {05E9596B-1EAB-4638-9351-E628281E2663}.Release|x64.Build.0 = Release|x64 + {05E9596B-1EAB-4638-9351-E628281E2663}.Release|x86.ActiveCfg = Release|Win32 + {05E9596B-1EAB-4638-9351-E628281E2663}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {6F891C87-7478-4482-9449-8C89A3EB3D09} + EndGlobalSection +EndGlobal diff --git a/3лаба/3лаба/3лаба.vcxproj b/3лаба/3лаба/3лаба.vcxproj new file mode 100644 index 0000000..430a6f3 --- /dev/null +++ b/3лаба/3лаба/3лаба.vcxproj @@ -0,0 +1,142 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {05e9596b-1eab-4638-9351-e628281e2663} + My3лаба + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + true + v143 + Unicode + StaticLibrary + + + 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лаба/3лаба/3лаба.vcxproj.filters b/3лаба/3лаба/3лаба.vcxproj.filters new file mode 100644 index 0000000..d1ca847 --- /dev/null +++ b/3лаба/3лаба/3лаба.vcxproj.filters @@ -0,0 +1,43 @@ + + + + + {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/3лаба/3лаба/3лаба1.c b/3лаба/3лаба/3лаба1.c new file mode 100644 index 0000000..9249c35 --- /dev/null +++ b/3лаба/3лаба/3лаба1.c @@ -0,0 +1,25 @@ +#include +#include + +void main() +{ + int a, b, min, max; + + SetConsoleCP(1251); + SetConsoleOutputCP(1251); + printf(" ="); + scanf_s("%d", &a); + printf(" ="); + scanf_s("%d", &b); + if (a < b) { + min = a; + max = b; + + } + else { + min = b; + max = a; + } + printf(" = %d\n", max); + printf(" = %d\n", min); +} diff --git a/3лаба/3лаба/3лаба2.c b/3лаба/3лаба/3лаба2.c new file mode 100644 index 0000000..6a2545a --- /dev/null +++ b/3лаба/3лаба/3лаба2.c @@ -0,0 +1,22 @@ +//#include +//#include +// +//void main() { +// int v1, v2, v3; +// int max; +// +// SetConsoleCP(1251); +// SetConsoleOutputCP(1251); +// +// printf(" 3 : "); +// scanf_s("%d%d%d", &v1, &v2, &v3); +// +// max = v1; +// if (v2 > max) { +// max = v2; +// } +// if (v3 > max) { +// max = v3; +// } +// printf("max=%d", max); +//} diff --git a/3лаба/3лаба/3лаба3.c b/3лаба/3лаба/3лаба3.c new file mode 100644 index 0000000..aa16cc1 --- /dev/null +++ b/3лаба/3лаба/3лаба3.c @@ -0,0 +1,22 @@ +//#include +//void main() +//{ +// SetConsoleCP(1251); +// SetConsoleOutputCP(1251); +// +// printf(" ="); +// int v; +// scanf_s("%d", &v); +// if (v < 18) { +// printf(""); +// } +// if ((18 <= v) && (v < 22)) { +// printf(""); +// } +// if ((22 <= v) && (v < 26)) { +// printf(""); +// } +// if (26 <= v) { +// printf(""); +// } +//} \ No newline at end of file diff --git a/3лаба/3лаба/3лаба4.c b/3лаба/3лаба/3лаба4.c new file mode 100644 index 0000000..f99336c --- /dev/null +++ b/3лаба/3лаба/3лаба4.c @@ -0,0 +1,28 @@ +//#include +//#include +// +//void main() { +// int v1, v2, v3, v4, v5; +// int max; +// +// SetConsoleCP(1251); +// SetConsoleOutputCP(1251); +// +// printf(" 5 ="); +// scanf_s("%d%d%d%d%d", &v1, &v2, &v3, &v4, &v5); +// +// max = v1; +// if (v2 > max) { +// max = v2; +// } +// if (v3 > max) { +// max=v3; +// } +// if (v4 > max) { +// max=v4; +// } +// if (v5 > max) { +// max=v5; +// } +// printf("max=%d", max); +//} diff --git a/3лаба/3лаба/3лаба5.c b/3лаба/3лаба/3лаба5.c new file mode 100644 index 0000000..554e3d4 --- /dev/null +++ b/3лаба/3лаба/3лаба5.c @@ -0,0 +1,22 @@ +//#include +//void main() +//{ +// SetConsoleCP(1251); +// SetConsoleOutputCP(1251); +// +// printf(" ="); +// int v; +// scanf_s("%d", &v); +// if (v < 18) { +// printf(""); +// } +// if ((18 <= v) && (v < 22)) { +// printf(""); +// } +// if ((22 <= v) && (v < 26)) { +// printf(""); +// } +// if (26 <= v) { +// printf(""); +// } +//} \ No newline at end of file diff --git a/3лаба/3лаба/3лаба6.c b/3лаба/3лаба/3лаба6.c new file mode 100644 index 0000000..87f0a6a --- /dev/null +++ b/3лаба/3лаба/3лаба6.c @@ -0,0 +1,24 @@ +#include +#include +void main() +{ + + SetConsoleCP(1251); + SetConsoleOutputCP(1251); + + int v; + printf(" ="); + scanf_s("%d", &v); + if (v < 500) { + printf(""); + } + if (v >= 500 && v < 1000) { + printf(""); + } + if (v >= 1000 && v < 5000) { + printf(""); + } + if (v >= 5000) { + printf(" "); + } +} diff --git a/3лаба/3лаба/3лаба7.c b/3лаба/3лаба/3лаба7.c new file mode 100644 index 0000000..3f75a07 --- /dev/null +++ b/3лаба/3лаба/3лаба7.c @@ -0,0 +1,29 @@ +//#include +//#include +//void main() +//{ +// SetConsoleCP(1251); +// SetConsoleOutputCP(1251); +// +// int v; +// printf(" /="); +// scanf_s("%d", &v); +// if (v < 3) { +// printf(" "); +// } +// if (v >= 3 && v < 5) { +// printf(" "); +// } +// if (v >= 5 && v < 9) { +// printf(" "); +// } +// if (v >= 9 && v < 14) { +// printf(" "); +// } +// if (v >= 14 && v < 25) { +// printf(" "); +// } +// if (v >= 25) { +// printf(" "); +// } +//} \ No newline at end of file