diff --git a/ОАиП_Lab_13/ОАиП_Lab_13/Source.cpp b/ОАиП_Lab_13/ОАиП_Lab_13/Source.cpp index f0a7b71..03b2a63 100644 --- a/ОАиП_Lab_13/ОАиП_Lab_13/Source.cpp +++ b/ОАиП_Lab_13/ОАиП_Lab_13/Source.cpp @@ -2,29 +2,29 @@ #include #include -// 3_1 -//void main() -//{ -// int a, b, minx, maxx; -// -// SetConsoleCP(1251); -// SetConsoleOutputCP(1251); -// -// printf(" "); -// scanf_s("%d", &a); -// printf(" "); -// scanf_s("%d", &b); -// if (a > b) { -// minx = b; -// maxx = a; -// } -// else { -// minx = a; -// maxx = b; -// } -// printf(" %d \n", minx); -// printf(" %d \n", maxx); -//} +// 3_1 +void main() +{ + int a, b, minx, maxx; + + SetConsoleCP(1251); + SetConsoleOutputCP(1251); + + printf(" "); + scanf_s("%d", &a); + printf(" "); + scanf_s("%d", &b); + if (a > b) { + minx = b; + maxx = a; + } + else { + minx = a; + maxx = b; + } + printf(" %d \n", minx); + printf(" %d \n", maxx); +} // 3_2 @@ -176,16 +176,16 @@ //} //LABA 4_4 -void main() { - SetConsoleCP(1251); - SetConsoleOutputCP(1251); - int n, i; - printf(" n: "); - scanf_s("%d", &n); - i = 2; - do { - printf("%d \n", i); - i = i + 2; - n = n - 1; - } while (n != 0); -} \ No newline at end of file +//void main() { +// SetConsoleCP(1251); +// SetConsoleOutputCP(1251); +// int n, i; +// printf(" n: "); +// scanf_s("%d", &n); +// i = 2; +// do { +// printf("%d \n", i); +// i = i + 2; +// n = n - 1; +// } while (n != 0); +//} \ No newline at end of file